Skip to content

Make possible to create new user role#352

Open
jgrossi wants to merge 14 commits into
2.5from
feature/role
Open

Make possible to create new user role#352
jgrossi wants to merge 14 commits into
2.5from
feature/role

Conversation

@jgrossi

@jgrossi jgrossi commented Oct 20, 2017

Copy link
Copy Markdown
Member

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
Copy Markdown

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

@michal-cecko

Copy link
Copy Markdown

@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.

3 participants