tires Posted February 10, 2021 Share Posted February 10, 2021 Hi! Is there a way to give a user the permission to move pages (in the page tree) only for one template? I just find a way to give the permissions to all templates. Thanks! Link to comment Share on other sites More sharing options...
Zeka Posted February 10, 2021 Share Posted February 10, 2021 Hi @tires Probably you can hook Page::moveable public function init() { $this->addHookAfter('Page::moveable', $this, 'moveable'); } public function moveable($event) { $page = $event->object; if ($page->template->name == 'test') { $event->return = true; } } Link to comment Share on other sites More sharing options...
Robin S Posted February 10, 2021 Share Posted February 10, 2021 As long as the user has edit access for the template, you can use "Additional edit permissions and overrides" at Edit Template > Access: 2 Link to comment Share on other sites More sharing options...
tires Posted February 11, 2021 Author Share Posted February 11, 2021 Ah! That is pretty easy! Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now