Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function getAccessFromCache(string! key, array originalValues = null) -> boolean|null
- {
- var explodedKey, access, keyWithValues, originalKeysJoin;
- let access = parent::getAccessFromCache(key);
- if access !== null {
- return access;
- }
- /**
- * Try *-resource-action
- */
- let explodedKey = explode("!", key);
- let access = parent::getAccessFromCache("_PHF_*!".explodedKey[1]."!".explodedKey[2]);
- if access !== null {
- return access;
- }
- /**
- * Try *-resource-*
- */
- let access = parent::getAccessFromCache("_PHF_*!".explodedKey[1]."!*");
- if access !== null {
- return access;
- }
- /**
- * Try role-resource-*
- */
- let access = parent::getAccessFromCache("_PHF_".explodedKey[0]."!".explodedKey[1]."!*");
- return access;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement