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

View File

@@ -24,7 +24,7 @@ $row = mysql_fetch_array($res);
if (!$row)
die();
if (get_user_class() < $torrentmanage_class)
if (!user_can('torrentmanage'))
bark($lang_fastdelete['text_no_permission']);
if (!$sure)