Jump to content

Deleted admin #@Z!


Manaus
 Share

Recommended Posts

$user = $users->get("test");
$user->addRole("superuser");
$user->of(false);
$user->save();

Or if you want to actually do it through the database, you can go into PHPMyAdmin and find the page ID for the user you want to change (from the pages table) and then go to the field_roles table and change the "data" value for that pages_id to 38

  • Like 3
Link to comment
Share on other sites

Of course you could even add back in the user you want first:

$users->add("name")

And then add the role to that new user!

PS some of these options only show in the cheatsheet if you click the "advanced" button.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...