Forums | Mahara Community

Support /
Admin Lost Admin Block


14 February 2017, 0:36

I did something wrong and now I get the following message as admin:

You are forbidden from accessing the administration section.

How do I reinstate my rights to the admin block?

Thank you.

Robert Lyon's profile picture
Posts: 749

14 February 2017, 9:16

Hi Nellie,

I'm thinking either

A) you (as admin) are masquerading as a non admin user and so can't see the admin section.

- solution: finish masquerading as the other user by logging out and then back in again

or

B) you (as admin) or another admin removed your administrator rights.

- solution 1: ask another admin to reinstate you admin rights then try logging in again

- solution 2: edit the database directly and run this command:

  UPDATE usr SET admin = 1 WHERE username = '[username]';

where [username] is your actual username

Cheers

Robert

14 February 2017, 10:11

Hi Robert,

None of the above assumptions. I lost my rights as the sole admin because I didn't follow the warning telling me that will lose it when I tried the web service login. I restored the system to yesterday morning and all is well, now. I have a lot of questions regarding OAuth with Facebook (already have API) and allowing people to login in from my Moodle site using Mnet. I could it to work on the Moodle but don't see the option on the Mahara. 
 
Thank you.
Keith Morton's profile picture
Posts: 18

14 February 2017, 10:09

As a suggestion. You might want to create a second site Admin account for yourself. This is a practice I have found valuable since there are a number of reasons that an Admin account may have issues. You can use the second account to fix the first.

14 February 2017, 10:11

Great idea, Keith. 

5 results