public func getPrivileges<T: Object>(_ cls: T.Type) -> ClassPrivileges

Returns the computed privileges which the current user has for the given class.

This combines all privileges granted on the class by all Roles which the current User is a member of into the final privileges which will be enforced by the server.

The privilege calculation is done locally using cached data, and inherently may be stale. It is possible that this method may indicate that an operation is permitted but the server will still reject it if permission is revoked before the changes have been integrated on the server.

Non-synchronized Realms always have permission to perform all operations.