Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

**SOLVED** No Admin Permissions


Reply


142 Views

Avatar
ambient

Community Member, 123 Posts

29 May 2014 at 12:43am

Edited: 29/05/2014 2:48am

Okay I've done something incredibly stupid, I was changing permissions for admins in the Security section.

Long story short, I unticked full administrative rights for admin and pressed save. D'oh!!

Now I can't access the Admin section at all. Any idea how I can reinstate the permissions?

I had a poke around php MyAdmin but couldn't figure it out.
AAAAARRRGGGHHHH!!!!!

UPDATE **SOLVED**
Phew!! I found a solution from Pigeon here:
[url]http://www.silverstripe.org/general-questions/show/8446[/url]

Security::setDefaultAdmin(admin, password)

I didn't think it would work cause it was the Administrators permissions that I removed but this sets up a whole new Administrators section with full permissions and I was able to undo my mistake :)