How to assign admin to the admin role once you've unassigned it ?

Author Message

Xavier Dutoit

Monday 17 March 2003 1:23:46 pm

Dear all,

I was toying with the rather complicated role/group/user permission system.

I had the stupid to unassign the admin user from the administrator group.
Therefore, the admin can't administer the users anymore, and thus can't give him the admin rights back.

I have an access to the database. How can I give back the administrator rights to the admin user ?

Thanks in advance

X+

P.S. I'd rather avoid to reinstall the system ;(

http://www.sydesy.com

Sergiy Pushchin

Wednesday 19 March 2003 2:47:21 am

insert into ezuser_role ( role_id, contentobject_id ) values(2,12);
it will assign admin role to all users under administrator user group. To assign admin role dirrectly to admin user:
insert into ezuser_role ( role_id, contentobject_id ) values(2,14);

Regards
SP

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:26:52
Script start
Timing: Jan 30 2025 22:26:52
Module start 'layout'
Timing: Jan 30 2025 22:26:52
Module start 'content'
Timing: Jan 30 2025 22:26:52
Module end 'content'
Timing: Jan 30 2025 22:26:52
Script end

Main resources:

Total runtime0.0315 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.6172151.2734
Module start 'layout' 0.00850.0042 739.8906220.7656
Module start 'content' 0.01270.0168 960.6563997.8984
Module end 'content' 0.02950.0020 1,958.554729.9922
Script end 0.0315  1,988.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00278.6846140.0002
Check MTime0.00113.5428140.0001
Mysql Total
Database connection0.00103.196310.0010
Mysqli_queries0.005116.085030.0017
Looping result0.00000.031010.0000
Template Total0.00154.610.0015
Template load0.00123.779710.0012
Template processing0.00030.818710.0003
Override
Cache load0.00082.532710.0008
General
dbfile0.00030.808180.0000
String conversion0.00000.021940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs