function isAllowed($userID, $resourceID){ //code to check if the user is allowed to access the resource return true; //returns true if the user is allowed }
isAllowed($userID, $postID); //Package/Library: None, this function can be included in any project.
isAllowed($userID, $pageID); //Package/Library: ACL (Access Control List)
isAllowed($userID, $transactionID); //Package/Library: RBAC (Role-Based Access Control)