pref-instances: check access level
This commit is contained in:
parent
368eb3f861
commit
bcce39e3d8
|
@ -1,6 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
function module_pref_instances($link) {
|
function module_pref_instances($link) {
|
||||||
|
|
||||||
|
if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) {
|
||||||
|
print __("Your access level is insufficient to open this tab.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$subop = $_REQUEST['subop'];
|
$subop = $_REQUEST['subop'];
|
||||||
|
|
||||||
if ($subop == "remove") {
|
if ($subop == "remove") {
|
||||||
|
|
Loading…
Reference in New Issue