diff --git a/include/constants.php b/include/constants.php
index 07693973..230be357 100644
--- a/include/constants.php
+++ b/include/constants.php
@@ -1,6 +1,6 @@
".$lang_functions['text_forums']."");
print ("
".$lang_functions['text_torrents']."");
- if ($enablespecial == 'yes' && get_user_class() >= get_setting('authority.view_special_torrent'))
+ if ($enablespecial == 'yes' && user_can('view_special_torrent'))
print ("".$lang_functions['text_special']."");
if ($enableoffer == 'yes')
print ("".$lang_functions['text_offers']."");
@@ -2307,11 +2307,17 @@ function menu ($selected = "home") {
print ("".$lang_functions['text_upload']."");
print ("".$lang_functions['text_subtitles']."");
// print ("".$lang_functions['text_user_cp']."");
- print ("".$lang_functions['text_top_ten']."");
- print ("".$lang_functions['text_log']."");
+ if (user_can('topten')) {
+ print ("".$lang_functions['text_top_ten']."");
+ }
+ if (user_can('log')) {
+ print ("".$lang_functions['text_log']."");
+ }
print ("".$lang_functions['text_rules']."");
print ("".$lang_functions['text_faq']."");
- print ("".$lang_functions['text_staff']."");
+ if (user_can('staffmem')) {
+ print ("".$lang_functions['text_staff']."");
+ }
print ("".$lang_functions['text_contactstaff']."");
print ("");
}
diff --git a/public/staff.php b/public/staff.php
index c34d3d6a..ee4dbef8 100644
--- a/public/staff.php
+++ b/public/staff.php
@@ -3,10 +3,7 @@ require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn(true);
-if (get_user_class() < UC_VIP)
-{
- stderr($lang_staff['std_sorry'],$lang_staff['std_permission_denied_only'].get_user_class_name(UC_VIP,false,true,true).$lang_staff['std_or_above_can_view'],false);
-}
+user_can('staffmem', true);
stdhead($lang_staff['head_staff']);
$Cache->new_page('staff_page', 900, true);