Extension add permission for extension field
This commit is contained in:
@@ -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