Merge pull request #5731 from greenbea/patch-7
Extension add permission for extension field
This commit is contained in:
@@ -84,6 +84,10 @@
|
|||||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
$y++;
|
$y++;
|
||||||
|
$apps[$x]['permissions'][$y]['name'] = "extension_extension";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
$y++;
|
||||||
$apps[$x]['permissions'][$y]['name'] = "number_alias";
|
$apps[$x]['permissions'][$y]['name'] = "number_alias";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
//$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
//$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
|||||||
@@ -947,10 +947,15 @@
|
|||||||
echo " ".$text['label-extension']."\n";
|
echo " ".$text['label-extension']."\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td width='70%' class='vtable' align='left'>\n";
|
echo "<td width='70%' class='vtable' align='left'>\n";
|
||||||
echo " <input class='formfld' type='text' name='extension' autocomplete='new-password' maxlength='255' value=\"".escape($extension)."\" required='required'>\n";
|
if ($action == "add" || permission_exists("extension_extension")) {
|
||||||
echo " <input type='text' style='display: none;' disabled='disabled'>\n"; //help defeat browser auto-fill
|
echo " <input class='formfld' type='text' name='extension' autocomplete='new-password' maxlength='255' value=\"".escape($extension)."\" required='required'>\n";
|
||||||
echo "<br />\n";
|
echo " <input type='text' style='display: none;' disabled='disabled'>\n"; //help defeat browser auto-fill
|
||||||
echo $text['description-extension']."\n";
|
echo "<br />\n";
|
||||||
|
echo $text['description-extension']."\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo escape($extension);
|
||||||
|
}
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user