Edit userlevels?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Edit userlevels?

Post by Davy »

Hey!

I'm asking loads of things, I know... So here's one more:
In s9y 1.1 you've the possibility to edit usergroups. That's a quiet good functionality! But is it still possible to edit the "old" userlevels? The problem is that some of the installed plugins on my blog use that system, and I want to make some more restrictions. If I don't my users can edit things that they can't use (like a WYSIWYG-editor).

Maybe this can be done more easily, but I couldn't find it anyway. :)
Thanks for an answer!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Edit userlevels?

Post by garvinhicking »

Hi!

The old "userlevels" are on a per-user basis, not per-group. So you can still edit users and assign userlevels to them for backward compatibility to plugins.

HTH,
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/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Hey!

Okay, I get that point. But now there's the following problem: I need to give my users the level "Administrator", while they must be able to use plugins. But when I do so, they can also edit lots of settings that they simply can't use. So I set the userlevel to "Standard editor", and then all settings are good, but the plugins are no longer accessible...

If it's possible to let the plugin work with usergroups, it would be great! Is there any documentation on that topic?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

That's right. You cannot achieve what you aim to do, I'm sorry - there's no way. You can't tell plugins that people are administrator without making the core believe the people are admins.

Of course the plugin can be made to work with usergroups! It just needs to be coded. Sadly, currently there is no plugin that makes use of it.

Code documentation is only available at sourcecode-level inside the file "include/functions_config.inc.php".

HTH,
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/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Well, I'll have a look there during the next week. I've already patched the Userprofiles-plugin so that you can only edit your own profile, so maybe this problem can also be solved...
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Hi!

I know this topic is pretty old, but I thought it's the best place to ask this question.
If I use the "User-Selfregistration" plugin and set the userlevel to "Administrator", is that safe? My users should only be able to edit their own profile. But how about the old userlevel-system? Is it safe to give users the highest level?

Thanks in advance!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
If I use the "User-Selfregistration" plugin and set the userlevel to "Administrator", is that safe? My users should only be able to edit their own profile. But how about the old userlevel-system? Is it safe to give users the highest level?
It definitely is dangerous. This could enable them to fully take on your system!

If they drop out of all usergroups, or if you use any plugins like staticpages etc., your users will have the full administrative rights to your blog.

I highly, highly recommend to not do that. It is much better to only give those people editor rights? What are your reasons for wanting to set them to Administrators? Which plugins require admin rights to be usable for your people?

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/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Well, the thing is that the User Profiles plugin didn't work when I used Standard Editor. But indeed, I was already afraid of that Administrator-level.
Post Reply