After an uneventful install, I tried to give site administrator role to a user who is not admin. I tick the box on the user edit page and submit it. I get a successful save message however the user is not given site administrator privileges. I then edit the user and see that the box remains unticked.

Comments

lelizondo’s picture

try doing a query for the users table. Mine shows a blank record and the admin record (blank starts with 0 on uid).

hope it helps

Luis

Luis

Vietyank’s picture

I took a look at the users_roles table. When the Site Administrator box is ticked, this table should receive a record but it is not. By manually adding the record I made the user a site administrator. This seems to be a bug.

jazzitup’s picture

Confirmed. I've spotted the exact same problem.

I've noticed that the table {users_roles} was empty, and after I manually inserted all the necessary rows, every time a user tries to submit changes to his own profile data, his row in {users_roles} table mysteriously disappears.

If the administrator tries to add any user into a certain role by using Drupal's GUI, nothing changes in {users_roles} - the record will not be added into the table.

--
www.jazzit.hr

jazzitup’s picture

If you use a User Karma module, it's possible that you made a human error, just like me... I have accidentally chosen an "admin role" within roles eligible for user karma only. It's not a bug! My case is closed.

--
www.jazzit.hr