Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Flexible Entity Check #21

Closed
andregeges opened this issue Mar 6, 2015 · 1 comment
Closed

Flexible Entity Check #21

andregeges opened this issue Mar 6, 2015 · 1 comment

Comments

@andregeges
Copy link

Hi, love your awesome feature Entity Check. but can you make it more configureable ?
in my database i used created_by instead of user_id to present who is the creator of this row..

@romanbican
Copy link
Owner

Hi,
I released new version where I solved this. You can now specify it like this:

if ($user->allowed('edit', $entity, true, 'created_by'))
{
    //
}

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

No branches or pull requests

2 participants