Skip to content

Conversation

@jwright6
Copy link
Contributor

Issue #352: Undefined index: id during attachPermission using array

Traits\EntrustRoleTrait:173 in attachPermission
When input is determined to be an array, the function incorrectly attempts
to get the value of the 'id' attribute instead of processing a list of
Roles. Fix calls attachPermissions on $permission instead, giving the
desired functionality.

Traits\EntrustRoleTrait:192 in detachPermission
See above.

Refactors Traits\EntrustRoleTrait:detachPermission to follow coding standard

Issue Zizaco#352: Undefined index: id during attachPermission using array
Zizaco#352

Traits\EntrustRoleTrait:173 in attachPermission
    When input is determined to be an array, the function incorrectly attempts
    to get the value of the 'id' attribute instead of processing a list of
    Roles.  Fix calls attachPermissions on $permission instead, giving the
    desired functionality.

Traits\EntrustRoleTrait:192 in detachPermission
    See above.

Refactors Traits\EntrustRoleTrait:detachPermission to follow coding standard
@andrewelkins andrewelkins merged commit 992e484 into Zizaco:master Dec 29, 2016
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.

2 participants