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

Improve permissions' management #45

Closed
jgoux opened this issue Dec 12, 2013 · 5 comments
Closed

Improve permissions' management #45

jgoux opened this issue Dec 12, 2013 · 5 comments

Comments

@jgoux
Copy link

jgoux commented Dec 12, 2013

Hi,
I think it would be great to add some other features to the permissions :

  • Be able to retrieve all users and groups having a specific permission ( $permission->users() for example)
  • When you delete a permission, you have to delete it in all users and groups containing this permission, for example :
    foreach ($this->users() as $user) {
    $user->setPermissionAttribute([this->name => 0]);
    $user->save();
    }

What do you think ?

@MrJuliuss
Copy link
Owner

Hello,

Good idea. i will add these features soon, but my priority is to update syntara for Laravel 4.1 ;)

Julien

@MrJuliuss
Copy link
Owner

Hi, now syntara support L4.1, i can add your suggestions ASAP ;)

Julien

@ghost ghost assigned MrJuliuss Dec 16, 2013
@xgenvn
Copy link
Contributor

xgenvn commented Dec 17, 2013

Hi @MrJuliuss
May I ask why we're heading to PHP5.4 in Syntara 1.2 branch? The Laravel 4.1 seems not to require 5.4, the least is 5.3.7 as I have checked new docs.

Brian.

@MrJuliuss
Copy link
Owner

@xgenvn hi, yep but with Syntara 1.2 i want to use PHP5.4 features... :)

@MrJuliuss
Copy link
Owner

@jgoux Hi, i have some problems with your suggestion :
permissions stored in "permissions" field of users and groups, and if i want to retrieve all users/groups which uses a permission i must look in all users/groups. its a problem with the database of sentry 2.

i will think of a solution, but i can't promise anything ;)

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

No branches or pull requests

3 participants