JAccessRules::allow

Checks that an action can be performed by an identity.

The identity is an integer where +ve represents a user group, and -ve represents a user.