laravel-acl icon indicating copy to clipboard operation
laravel-acl copied to clipboard

Roles permissions are not mixed correctly

Open b3ni opened this issue 9 years ago • 1 comments

// 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; }

b3ni avatar Nov 22 '16 08:11 b3ni

See https://github.com/kodeine/laravel-acl/pull/169.

QuentinPetel avatar Nov 24 '16 12:11 QuentinPetel