1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 08:17:12 +02:00

Add PR #261 - Added page-edit-redirects optional permission

This commit is contained in:
chriswthomson
2023-03-09 10:17:41 -05:00
committed by Ryan Cramer
parent fb980f24c7
commit dafceffc6f
2 changed files with 8 additions and 3 deletions

View File

@@ -180,6 +180,10 @@ class Permissions extends PagesType {
if($role->name === 'superuser') continue;
$a["user-admin-$role->name"] = sprintf($this->_('Administer users in role: %s'), $role->name);
}
if($this->wire()->modules->isInstalled('PagePathHistory')) {
$a['page-edit-redirects'] = $this->_('User can add/edit/delete redirect URLs in the page editor');
}
$languages = $this->wire()->languages;
if($languages) {