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

Make possible to create new user role #352

Open
wants to merge 14 commits into
base: 2.5
Choose a base branch
from
Open

Make possible to create new user role #352

wants to merge 14 commits into from

Conversation

jgrossi
Copy link
Member

@jgrossi jgrossi commented Oct 20, 2017

This fixes #349. Basically:

$role = (new RoleManager())->from('editor')
    ->create('foo', [
        'edit_pages' => false,
        'edit_others_pages' => false,
    ]);

It creates a new foo role based on editor overriding some capabilities, in this case: edit_pages and edit_others_pages.

This is going to be merged on 2.5 but if everything is ok it's gonna be merged into 2.4, 2.3, 2.2 and 2.1 as well.

@jgrossi jgrossi mentioned this pull request Oct 20, 2017
@jgrossi jgrossi mentioned this pull request Oct 30, 2020
@Stevemoretz
Copy link

@jgrossi May I ask why you didn't merge this?

@Elvinca
Copy link

Elvinca commented Apr 11, 2024

@jgrossi I would like to know aswell...

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.

None yet

3 participants