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:
committed by
Ryan Cramer
parent
fb980f24c7
commit
dafceffc6f
@@ -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) {
|
||||
|
Reference in New Issue
Block a user