php - Zend Framework Code explanation (roleHasAcces) -
i found in old code i'm trying refactor have no clue means. can explain rule of code me?
if (!libraryname_feature_access_rolehelper::rolehasaccess($plan_code, 'can_subscribe')) { $this->_redirect('error/404'); }
thanks in advance!
if (!libraryname_feature_access_rolehelper::rolehasaccess($plan_code, 'can_subscribe')) { $this->_redirect('error/404'); }
in above code, $plan_code has value. might admin code or guest user code, , checking whether particular type of user can subscribe or not, means user has access authority subscribe or not.
for detail inquiry, please check link. http://framework.zend.com/apidoc/2.0/classes/zend.permissions.acl.acl.html
Comments
Post a Comment