Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions access #15

Closed
mithriock opened this issue May 1, 2014 · 0 comments
Closed

Permissions access #15

mithriock opened this issue May 1, 2014 · 0 comments

Comments

@mithriock
Copy link

I did have a problem when define access a role. In the controller, i defined method access_map() with the config permissions. In the manage role's privilege manager, I defined the permissions a same role for the method of controller. But, when try access a method, the response is "you do not have sufficient permission to access this resource".

my doubt was on the next line: https://github.com/xiidea/ezRbac/blob/master/libraries/accessmap.php#L214

return $this->_access_details[$action] = (boolean)$this->_access_val & pow(2, $index);

where i changed and leave as follows:

return $this->_access_details[$action] = (boolean)($this->_access_val & pow(2, $index));

And it worked. I work with PHP 5.5.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant