Refactoring user permissions

This commit is contained in:
xiaomlove
2022-08-20 19:11:28 +08:00
parent 3046837576
commit b79762686a
73 changed files with 945 additions and 326 deletions
+3 -4
View File
@@ -8,8 +8,7 @@ $prefix = '';
$user = $CURUSER;
$PHP_SELF = $_SERVER['PHP_SELF'];
if (get_user_class() < $forummanage_class)
permissiondenied();
user_can('forummanage', true);
// DELETE FORUM ACTION
if (isset($_GET['action']) && $_GET['action'] == "del") {
@@ -180,8 +179,8 @@ $nr = mysql_num_rows($res);
<?php
} while($row = mysql_fetch_array($result));
}
else
}
else
{
print ($lang_forummanage['text_no_records_found']);
}