SocialEngine 4: Super Admin Can Be Un-Approved

Andrew - SocialEngine

An Error has been found where anther Admin can un-approve super admin’s within the Admin Panel. This could cause a-lot of problems if an admin did such an action against the main Super Admin.

You can fix this with a modification to the system so that only Super Admin 1 Can edit the status of members of  a higher level.

In /application/modules/User/views/scripts/admin-manage/index.tpl file, serach for the below code near line number: 181:

  <a class='smoothbox' href='<?php echo $this->url(array('action' => 'edit', 'id' => $item->user_id));?>'>
         <?php echo $this->translate("edit") ?>

and replace it with

<?php if($item->user_id != 1) { ?> |
              <a class='smoothbox' href='<?php echo $this->url(array('action' => 'edit', 'id' => $item->user_id));?>'>
               <?php echo $this->translate("edit") ?>
<?php } ?>

Save the changes and re-upload to your server.

This will now only allow the super admin 1 to make changes to the status of members

Remember to always backup the original file in-case a mistake has happened you can always revert back.

Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting

Tags: , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *