Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Administrators can edit themthelves

is it right that administrators are able to edit themselves?
what must i change that admins are not able to edit themthelves?

Merged on 04/28/2018:
i have solved the problem.

you must edit administrators.php and replace

CodeDownload  
      if ($data['user_level'] == "103" && $userdata['user_id'] == "1") { $can_edit = true;
      } elseif ($data['user_level'] != "103") { $can_edit = true;
      } else { $can_edit = false; }
 if ($can_edit == true && $data['user_id'] != "1") {
          echo "<a href='".FUSION_SELF.$aidlink."&edit=".$data['user_id']."'>".$locale['426']."</a> |\n";
          echo "<a href='".FUSION_SELF.$aidlink."&remove=".$data['user_id']."' onclick=\"return confirm('".$locale['460']."');\">".$locale['427']."</a>\n";
       }



with this

CodeDownload  
      if ($data['user_level'] == "103" && $userdata['user_id'] == "1") { $can_edit = true;
      } elseif ($data['user_level'] != "103") { $can_edit = true;
      } else { $can_edit = false; }
      if ($data['user_level'] != "103" && $userdata['user_id'] != $data['user_id']) {
 if ($can_edit == true && $data['user_id'] != "1") {
          echo "<a href='".FUSION_SELF.$aidlink."&edit=".$data['user_id']."'>".$locale['426']."</a> |\n";
          echo "<a href='".FUSION_SELF.$aidlink."&remove=".$data['user_id']."' onclick=\"return confirm('".$locale['460']."');\">".$locale['427']."</a>\n";
       }
 }



now administrator can edit other admins but not themselves.
Is this 7 or 9 ?
Thread Information
Author
Replies
2 posts
Views
891 times
Last Post
Last updated on 2 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, chrome511