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

Deprecate adminonly and simple_acl in favour of acl_user_groups #1131

Closed
ddeboer opened this issue Jan 8, 2016 · 15 comments
Closed

Deprecate adminonly and simple_acl in favour of acl_user_groups #1131

ddeboer opened this issue Jan 8, 2016 · 15 comments
Assignees
Labels
Milestone

Comments

@ddeboer
Copy link
Member

ddeboer commented Jan 8, 2016

There are now too many ACL options (especially for newcomers to the framework) to choose from.

What about deprecating adminonly and simple_acl or at least strongly recommending to use acl_user_groups? Or does anyone still see good use cases for the older two ACL modules?

@mworrell
Copy link
Member

I am for moving the mod_acl_simple_roles out of the core.
We can do the same with the mod_acl_adminonly if (and only if) we have good defaults for that module and clear documentation.
Till that moment I am for keeping the mod_acl_adminonly in the core.

@ddeboer
Copy link
Member Author

ddeboer commented Jan 11, 2016

I am for moving te mod_acl_simple_roles out of the core.

Good idea. Let’s start there.

for that module and clear documentation.

You mean defaults for acl_user_groups, right?

@mworrell
Copy link
Member

Yes, good defaults for the user groups, content groups and some rules.

@mworrell mworrell added this to the Release 1.0 milestone Jan 11, 2016
@mmzeeman
Copy link
Member

Do you mean by good defaults also a way to move your resources from simple_roles to user_groups?

@mworrell
Copy link
Member

@mmzeeman That could be a support function you can run manually?

@mmzeeman
Copy link
Member

Yes of course. We currently have groups via predicates. That would allow us to write an update routine.

On 12 Jan 2016, at 13:54, Marc Worrell notifications@github.com wrote:

@mmzeeman https://github.com/mmzeeman That could be a support function you can run manually?


Reply to this email directly or view it on GitHub #1131 (comment).

@ddeboer
Copy link
Member Author

ddeboer commented Feb 17, 2016

We can start adding default ACL rules now #1173 has been merged.

@ddeboer ddeboer self-assigned this Feb 27, 2016
@ddeboer
Copy link
Member Author

ddeboer commented Mar 24, 2016

What about the following set?

Group Content group Category Permissions
anonymous all all view
managers all all view,insert,update,remove,link
Group Modules Permissions
managers mod_admin use
managers mod_admin_category use
managers mod_admin_identity use
managers mod_content_groups use
managers mod_menu use

Do we agree about adding this set as fixtures? This does mean they will be read-only on the ACL screen and cannot be altered later. We could optionally place them in a separate module, but that module should then be enabled by default to support the idea of an out-of-the-box set of useful rules.

/cc @fredpook @eminetuzkapan @Dirklectisch

@mworrell
Copy link
Member

👍

Also we need to fix #1211

@ddeboer ddeboer modified the milestones: Release 0.15, Release 1.0 Mar 24, 2016
@mmzeeman
Copy link
Member

What is the procedure for moving from acl simple roles to the new module?

@ddeboer
Copy link
Member Author

ddeboer commented Mar 24, 2016

  1. Release mod_acl_user_groups with sane defaults and add a deprecation warning when mod_acl_simple_roles is still enabled. Document the deprecation (e.g. 0.15).
  2. Remove mod_acl_simple_roles out of the core (e.g. 0.18: 3 months later?).

@mmzeeman
Copy link
Member

And what do site owners with existing role assignments have to do to go from one to the other? Is it possible to automate this? Go from simple acl to more advanced acl?

@mworrell
Copy link
Member

It might be possible to automate, at least partially.
Most is just changing categories and predicates.

The rules themselves could also be inserted, at least for the category creation and "view all" part.

@ddeboer
Copy link
Member Author

ddeboer commented Jun 5, 2016

And what do site owners with existing role assignments have to do to go from one to the other? Is it possible to automate this?

It might be possible to automate, at least partially.

True, but I’m not sure it’s worth the effort.

@mmzeeman and other users of mod_acl_adminonly: are you working with large ACL rulesets? How would you feel if we add instruction to the docs on how to upgrade to mod_acl_user_groups (which is now documented properly) but leave the creation of ACL rules up to you?

@mmzeeman
Copy link
Member

mmzeeman commented Jun 6, 2016

Yes, I think it isn't worth the effort either. Even moving our sites to the groups acl isn't worth it either. For the moment we can simply use mod_acl_simple_roles as a separate module.

@ddeboer ddeboer removed this from the 0.17 milestone Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants