By ChrisNolan.ca on
I've created a new role, called it 'admin' and under admin -> access control I checked every box. I've gone into the user, assigned them the 'admin' role but they don't have access to the /admin tree. What have I done wrong? The other admin functions have shown up fine such as user management and editing other users posts. Are all the bigger admin features restricted to the first user?
Thanks in advance,
ChrisNolan.ca
Comments
That should do it
Unless things have changed for 4.6 (and I doubt they have) and you did everything you described above, the user should have the same power as user #1.
Might be a bug.
Darn...
How does one go about digging a little deeper in this system? The log, when I view details just says 'access denied' - is there a high debug level I can turn up somewhere, or a log to disk that might have more information so I can try to confirm one way or the other if it's a bug?
Thanks
I think it's a bug
I reproduced your problem on my 4.6 site. I don't even see a menu option for 'administer' for the user.
Maybe there is a new setting for 4.6 that I don't know about. Post a bug report for now. I'll try to troubleshoot later today.
What I might have done differently
I was just thinking about what I might have done differently. Originally I named the first user with my usual handle. After going through things I realized I should have a normal user as well as the super user so I changed the name of the first account and then created new account with the old name. That new account is the one I'm assigning the new role now.
Isn't everything based on UID though and not the name? Just in case that triggers something.
Right
The name of the user shouldn't matter. It goes by UID.
Did you give the "admin" role access to everything?
You still need to actually set permissions for the "admin" role -- i.e. put a check mark next to every permission listing.
The first user (#1) is a special case -- they always automatically have access to everything, regardless of roles/permissions.
Found the problem
I found the bug. Temporary workaround: You have to clear the menu cache in order for the menu items for the new user to take effect.
To solve the problem:
Log into the database using 'mysql -u<username> -p<password> <database_name>'
Then type 'delete from cache;'
If you don't have database access, do a quick hack of the index.php file (found in the root directory of your Drupal installation) and type the following: "db_query('delete from cache');" Then load a page. Now delete the line.
That's it. This is a bug. I'll report it.
That did it, thanks!
Thanks nysus, 'delete from cache;' did the trick the adminster menu is now there and I can access all the good stuff.
More permanent solution
There's a more permanent solution at http://drupal.org/node/24034