Changing Edit Entry permissions

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
dazza
Posts: 4
Joined: Mon Sep 18, 2006 2:29 am

Changing Edit Entry permissions

Post by dazza »

Been thinking of a way to get Serendipity to work like this:
1. The author who creates a category is the only one who can edit entries in that category. No even people who contribute entries to that category can edit entries, only the person who created (or owns) that category
2. You can only edit entries on categories that you own.

Any ideas about how that could be done? I might be missing something with the way Groups work at the moment.

cheers
Daryn
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'm really a lot more familiar with Unix permissions than Serendipity permissions. Sigh.

I see in the database that categories are assigned an authorid. But I don't see anywhere in the configuration where that can be changed or used. In fact, the only place I see a mention of "user's categories" is in Manage Groups, where you can allow members of a group to "Administrate other user's categories".

The categories themselves get read and write permissions for particular groups. SO, in the extreme case, you could make each user a group of his own, with read access to all categories, but write access only to his own category.

But that's a lot of setup and maintenance. Anybody else know a better way?
Judebert
---
Website | Wishlist | PayPal
etov
Regular
Posts: 19
Joined: Thu Oct 05, 2006 8:03 pm
Location: USA
Contact:

Been thinking of the same thing

Post by etov »

I did a search on forum to get this topic. Here is what I am thinking as I am now ready to begin invites to join my site (www.etov.com if you are inclined)
What I am thinking is setting up new users in a group (Newbie) that only allows write and access to categories I set up, and one of the categories will be "them" with an image of their choosing. Later on, lets say 90 days later, they can request to be a part of the larger group that can create categories, etc.

What I really want is to have folks use my images uploaded, but be able to create their own categories that others can use, but can not change. Can that be done? I don't want someone changing a global category and ruining the authors intent, so to speak.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Been thinking of the same thing

Post by garvinhicking »

Hi etov!

Currently, you can only give "Full Category Management" privileges to a user to create new categories. He will then also be able to modify global categories.

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/
etov
Regular
Posts: 19
Joined: Thu Oct 05, 2006 8:03 pm
Location: USA
Contact:

So what happens when........

Post by etov »

When I allow a user to create the category "art" and he then writes about "art", then another user comes along and changes the category to "my dog" and writes about his dog? By allowing them to create categories, I am also allowing them to destroy categories aren't I, or does the original "art" category stay as "art"?
Thanks,
I love the s9y, now if I can get google to buy me out!!!!!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: So what happens when........

Post by garvinhicking »

Hi!

Yes, by allowing them to modify categories, the scenario you describe is possible.

Thus, category management is usually only granted to users who are not "evil".

Of course, you could introduce new permissions that change this sort of behaviour, but that needs to be implemented into Serendipity and would take some serious work... :-/

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/
Post Reply