Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

- Declaration

static FCavrnusBinding BindGlobalPolicy(FString Policy, FCavrnusPolicyUpdated OnPolicyUpdated);

Delegates Types:

DECLARE_DYNAMIC_DELEGATE_TwoParams(FCavrnusPolicyUpdated, FString, Policy, bool, IsAllowed);

- Description

Binds an event to throw when a policy is/isn't allowed for the user.

Important: Cavrnus user accounts will always have an Organization Role which will apply to them as soon as they authenticate. They will also have a Space Role for each space they are able to join. The Organization Role generally governs things like creating spaces and uploading objects. The Space Role generally governs the ability to make updates/modifications to the space in question. All Roles and Policies are controlled via the /wiki/spaces/IKB/pages/842268673.

BindGlobalPolicy resolves by only looking at the Organization Role. It will search for any Policies in that role which apply to the passed-in policy parameter. If all Policies resolve to allow it then OnPolicyUpdated will return true. Otherwise it will return false.

If you wish to resolve a Policy based on the user’s role inside a space, use BindSpacePolicy.

- Blueprint Sample

- Code Sample

TODO: WRITE
  • No labels