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


Print Track
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

      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

      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.
Falk , chrome511 has replied to this - 1 year ago

1 reply

Is this 7 or 9 ?
author chrome511
forumUser Administration - 8
replies2 posts
viewed786 times
activeLast updated on 1 year ago

Related

No Edit-news when using single column news
Started by Ken Ken - 4 posts
[solved] Edit News in "readmore" in 6.01.10
Started by Quartzkyte Quartzkyte - 10 posts
How to edit agile_carousel_data.php file into php-fusion
Started by
N
ntn - 2 posts
How can edit "Read More" text in news?
Started by Jompsa Jompsa - 3 posts
Looking to edit the "Users Online" panel...
Started by
J
JosephHH - 3 posts
Septenary Theme Edit - Theme engine bug
Started by
T
TreZc0_ - 6 posts
You can view all discussion threads in this forum.
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.
Users who participated in discussion: Falk, chrome511