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

Authors can edit Member Role permissions #268

Open
michael-e opened this issue May 22, 2015 · 7 comments
Open

Authors can edit Member Role permissions #268

michael-e opened this issue May 22, 2015 · 7 comments

Comments

@michael-e
Copy link
Member

Backend authors are able to edit Member Role permissions. This feels like a bug to me. Or is this intended?

@nitriques
Copy link
Member

This feels like a bug to me.

Me too. Only Managers should be able to do it.

@animaux
Copy link

animaux commented Nov 23, 2017

Shall we simply move it to blueprints to fix this or rather hide it like the CSV extension does?

public function fetchNavigation()
{
    // Author: Use the accessor function if available (Symphony 2.5)
    if (is_callable(array('Symphony', 'Author'))) {
        $author = Symphony::Author();
    } else {
        $author = Administration::instance()->Author;
    }

    if ($author->isDeveloper()) {
        return array(
            array(
                'location'	=> __('System'),
                'name'		=> __('Import / Export CSV'),
                'link'		=> '/'
            )
        );
    }
}

@michael-e
Copy link
Member Author

Blueprints is not the right place. We should hide it and programatically prevent using it (by checking the author role).

@animaux
Copy link

animaux commented Nov 23, 2017

I moved it to Blueprints as a quick workaround and it feels quite natural to have it there. :)

But you are probably right.

@nitriques
Copy link
Member

@animaux Can you send a PR please ? So we can discuss it better ? Thanks.

@animaux
Copy link

animaux commented Nov 27, 2017

I don’t have the extension-knowledge to do that the way @michael-e suggests. Would have to copy code from other extensions which might not be the best way to do it. Maybe someone with more expertise can take over?

@nitriques
Copy link
Member

Ok

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

No branches or pull requests

3 participants