tires Posted February 10, 2021 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!
Zeka Posted February 10, 2021 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; } }
Robin S Posted February 10, 2021 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
tires Posted February 11, 2021 Author Posted February 11, 2021 Ah! That is pretty easy! Thanks a lot!
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