Group change when saving to "Admin"

Found a bug? Tell us!!
Post Reply
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Group change when saving to "Admin"

Post by Chief »

Hi All... I found something.

When I edit group access like

USERLEVEL_CHIEF_DESC when I save its write Admin as group

Same if I change

USERLEVEL_EDITOR_DESC

USERLEVEL_ADMIN_DESC

all have Admin for groupname ... I cant update manualy, I have to go in the database to make the change.

I use french language translation.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Group change when saving to "Admin"

Post by garvinhicking »

Hi!

Can you describe more in depth (maybe with screenshots) what you mean?

The name of the Admin/Chief/Editor usergroups are using language-specific constants. Only new groups you create use custom names - so if you edit one of the internal groups, you should leave the name intact.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

First when I enter in manage group this is what I see.

Image


I Edit group ... de USERLEVEL is correct
Image


When I save the group its change to Admin( I have not change USERLEVEL name.
Image

Same for each Standard level I want to edit or create.

If I create a new level the name is : Un nouveau groupe intitulé #4, Admin a été crée

Like all 3 USERLEVEL is 3 Admin level ... its add a #4Admin as USERLEVEL but in the database its named Admin

In the database I see Admin as USERLEVEL ( I can change it back there only )

Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The USERLEVEL_* Name is just the name of the group, it has nothing to do with userlevels per se, just because the name of the constant has the Userlevel prefix as it is used in other places.

So if you create a group called "Admin", it is fine if "Admin" is inserted into the database; the USERLEVEL_* thing is only rquired for internal groups.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

Hi, I dont create Admin group ... when I edit an actual group, same if I change nothing when I save the userlevel description is changed to Admin.

Look like in the code the insert in the database is not what we see or put in the description userlevel name.

If I see USERLEVEL_EDITOR_DESC in the description and I change nothing in restrictions its suppose to stay USERLEVEL_EDITOR_DESC in the database or name of userlevel.

But its change to Admin for nothing :cry:

Thx for the Help Garvin.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

When I edit the usergroup "Admin" and rename it like to "My Administrators" and save it, then in the database it reads "My Administrators".

When I rename it to "Admin" again, also that is properly saved in the database.

When I rename the group to "USERLEVEL_ADMIN_DESC", it will be saved as this "USERLEVEL_ADMIN_DESC", but will be displayed as "Admin".

All this I have tested with Serendipity 1.0...which version did you use? And did I describe the right situation where you have the problem with? Maybe I still don't really understand what you are doing?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

Garvin, i think i have the same issue. You can see it in my private blog.

Just rename a usergroup and you will see those "variable-names".
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

Hi, I do my best to explain lol I am french.


On every groups I made the change its allways change to Admin... I never change the name in the name box. if I edit and save the field is renamed as Admin.


BUT --- I have try something... I have change groups.inc.php from version 1.1 and I have replace the file in version 1.0 and its work. Can I use this files with no problem ?

I am not at home, and I have no tools here... I will compare these 2 files to see what is the difference make that bug.
Chief
Regular
Posts: 69
Joined: Sun Jul 23, 2006 3:08 am

Post by Chief »

Ok I found something... when I clear my cookies its back to normal.

I think another website or instance write the name : Admin into my cookies.( I have some php website with Admin as username )

If I have Admin in I cant see other entries to delete or edit into my admin entries list.

If I clear my cookies I see all entries my by all author in my admin panel.

Same for USERLEVEL_ADMIN_DESC or other bug, if I clear my cookies I can edit and save each groups without its change to Admin.

Hope its can help someone. :wink:
Post Reply