forked from science-ation/science-ation
only a superuser can access the access controls for users
This commit is contained in:
parent
3deae5e029
commit
82780d85f8
@ -278,8 +278,10 @@ if($_GET['edit'] || $edit)
|
|||||||
echo "<tr><td>".i18n("Phone (Work)").":</td><td><input size=\"15\" type=\"text\" name=\"phonework\" value=\"$r->phonework\" /></td></tr>\n";
|
echo "<tr><td>".i18n("Phone (Work)").":</td><td><input size=\"15\" type=\"text\" name=\"phonework\" value=\"$r->phonework\" /></td></tr>\n";
|
||||||
echo "<tr><td>".i18n("Phone (Cell)").":</td><td><input size=\"15\" type=\"text\" name=\"phonecell\" value=\"$r->phonecell\" /></td></tr>\n";
|
echo "<tr><td>".i18n("Phone (Cell)").":</td><td><input size=\"15\" type=\"text\" name=\"phonecell\" value=\"$r->phonecell\" /></td></tr>\n";
|
||||||
echo "<tr><td>".i18n("Fax").":</td><td><input size=\"15\" type=\"text\" name=\"fax\" value=\"$r->fax\" /></td></tr>\n";
|
echo "<tr><td>".i18n("Fax").":</td><td><input size=\"15\" type=\"text\" name=\"fax\" value=\"$r->fax\" /></td></tr>\n";
|
||||||
echo "<tr><td align=\"center\" colspan=\"2\"><hr /></td></tr>";
|
|
||||||
|
|
||||||
|
if(auth_has_access("super"))
|
||||||
|
{
|
||||||
|
echo "<tr><td align=\"center\" colspan=\"2\"><hr /></td></tr>";
|
||||||
echo "<tr><td>".i18n("Access Controls").":</td><td>";
|
echo "<tr><td>".i18n("Access Controls").":</td><td>";
|
||||||
if($r->access_admin=="Y") $checked="checked=\"checked\""; else $checked="";
|
if($r->access_admin=="Y") $checked="checked=\"checked\""; else $checked="";
|
||||||
echo "<input type=\"checkbox\" name=\"access_admin\" value=\"Y\" $checked /> ".i18n("Administration")."<br />";
|
echo "<input type=\"checkbox\" name=\"access_admin\" value=\"Y\" $checked /> ".i18n("Administration")."<br />";
|
||||||
@ -289,6 +291,7 @@ if($_GET['edit'] || $edit)
|
|||||||
echo "<input type=\"checkbox\" name=\"access_super\" value=\"Y\" $checked /> ".i18n("Superuser")."<br />";
|
echo "<input type=\"checkbox\" name=\"access_super\" value=\"Y\" $checked /> ".i18n("Superuser")."<br />";
|
||||||
|
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
echo "<tr><td align=\"center\" colspan=\"2\">";
|
echo "<tr><td align=\"center\" colspan=\"2\">";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user