Skip to content
Peter Shinners edited this page Apr 16, 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 be used to define the values needed to perform the operation. A provided example would look like this in 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.

If this method was intended to be useful, it would need to return a message or more information back to the caller on why the operation was not permitted.

Clone this wiki locally