pref-instances: check access level

This commit is contained in:
Andrew Dolgov 2011-04-20 16:04:50 +04:00
parent 368eb3f861
commit bcce39e3d8
1 changed files with 5 additions and 0 deletions

View File

@ -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") {