Skip to content
Peter Shinners edited this page Apr 18, 2021 · 5 revisions
bool checkPermissions(
    const std::string &assetId, 
    const StringMap &context
)

Perform a theoretical permission check on an arbitrary and hypothetical operation.

This is unused by Katana, just return true and be done with it.

When LiveGroup nodes are locked and unlocked they go through runAssetPluginCommand which performs a similar check.

The context string map is intended to define values needed to define the operation. A provided example would look like this (as JSON):

{
    "action": "edit", 
    "shot": "ts520", 
    "show": "srow",
    "username": "name", 
    "workstation": "seat"
}

But Katana has no way to define most of these values, and the suggestion to use an "action" value in the context is only a suggestion.

This method provides no way to inform a caller why the permissions were not permitted, it can only return a boolean.