mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes #5045 - Removed inline editing for when only "Quick Add User" has been granted, and removed adding of admin perms to avoid access escalation.
This commit is contained in:
@@ -420,6 +420,11 @@ class users_admin_ui extends e_admin_ui
|
|||||||
{
|
{
|
||||||
unset($this->fields['checkboxes']);
|
unset($this->fields['checkboxes']);
|
||||||
unset($this->fields['options']);
|
unset($this->fields['options']);
|
||||||
|
foreach($this->fields as $fld=>$val)
|
||||||
|
{
|
||||||
|
$this->fields[$fld]['inline'] = false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->fields['user_image']['writeParms'] = $this->getAvatarList();
|
$this->fields['user_image']['writeParms'] = $this->getAvatarList();
|
||||||
@@ -1679,6 +1684,8 @@ class users_admin_ui extends e_admin_ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Make Admin.
|
// Make Admin.
|
||||||
|
if(getperms('4|U0')) // Quick Add User access should not be allowed to create new users with escalated perms.
|
||||||
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td>".USRLAN_35."</td>
|
<td>".USRLAN_35."</td>
|
||||||
@@ -1694,7 +1701,7 @@ class users_admin_ui extends e_admin_ui
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
|
}
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user