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

Roles permissions are not mixed correctly #173

Open
wants to merge 1 commit into
base: 1.0
Choose a base branch
from
Open

Conversation

b3ni
Copy link

@b3ni b3ni commented Nov 22, 2016

// permissions based on role.
// more permissive permission wins
// if user has multiple roles we keep
// true values.

This does not happen because of the following condition:

if( !array_key_exists( $clearance, $permissions[$slug] ) ) {
! $value ?: $permissions[$slug][$clearance] = true;
}

@QuentinPetel
Copy link

See #169.

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

Successfully merging this pull request may close these issues.

None yet

2 participants