JAccessRule::allow

Checks that this action can be performed by an identity.

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