mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
Refactoring user permissions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user