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

Admin accounts are not working?


Reply


3 Posts   884 Views

Avatar
dynamite

Community Member, 66 Posts

3 March 2010 at 11:47am

Hello -- something went wrong with one of my SS installs, and the admin accounts keeping getting kicked back with the error message:

You don't have access to this page. If you have another account that can access that page, you can log in below.

I know it is not a password issue - I even used "Security::setDefaultAdmin" in my config to make sure.

Also, I have tried a /dev/build?flush=1 but it didn't seem to change anything or repair any tables. I ran a MySQL table check/repair, and also checked the tables Groups, Permssions, Group_Members and Members but it all looks good.

Does anyone have any ideas for me on what to check next? Thank you very much!

Avatar
carlos

Community Member, 41 Posts

3 March 2010 at 2:36pm

Edited: 03/03/2010 2:37pm

Hi,

Did you check you DB? using phpmysql or something else?

Have you tried "I've lost my password" link?

cheers

Avatar
dynamite

Community Member, 66 Posts

4 March 2010 at 10:39am

I found the problem, but still need a more permanent fix...

I incorrectly assumed that the "canEdit" method was only for the API calls.

Once I commented out the following line in my code/Page.php, it started working again.

function canEdit() { return false; }

So... does anyone know how to deny access to editing for API calls only?

Thanks!

~ Jeremy