Jump to content

Recommended Posts

Posted

Hi All,

I was playing around with the settings for various templates as I had created a new role and have inadvertantly locked myself out.

I changed some of the settings on the Admin template, so I assume this is what has caused the lock out.

I have direct access to the database but I have no idea what I would need to change in it to regain access.

Probably also worth mentioning that all the existing pages are still accessible, but /processwire throws a 404.

Posted

404 on /processwire doesn't say to me that this is a permission error. Also I don't believe you can remove the administration role from the initial admin account without taking from the database. 

Have you changed the url to the login page? Can you echo out <?=$page->editUrl?> this will give you the url with the admin panel. 

  • Like 1
Posted

Luckily there is a front facing log in form, so I managed to add the superuser role to a normal account and log in that way.

Will update when I figure out what it was I had changed and how to undo it, figure it might be useful for others in future.

Posted

Seems like Tom. was correct, the problem wasn't with the admin template after all.

I forgot that I had built a module which would limited who could access pages based on the admin template depending on their roles.

It appears that in creating the new role it totally messed with the logic of the module, I have since updated the module and I can log back in again as expected.

Posted

Also worth noting @cosmicsafari that you can limit page view permission without the need of a module :-) Edit the template you want permissions for, go to Access and untick View for your user role. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...