Dealing with multiple Administrators

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zeve
Forum Newbie
Posts: 4
Joined: Mon Jan 12, 2009 3:12 pm

Dealing with multiple Administrators

Post by zeve »

Hey guys,

So I have a content management system that I have developed.

Users, who are not administrators, submit stories.

They are then sent to a pending database.

An administrator then gets to view, edit, and then submit those stories.

However, what if I want to give multiple users administrator privileges? The dilemma in my mind is, what if two administrators open the same story at the same time, and are both editing it. Then there will be two altering submissions of the same story.

What is an effective way to prevent something like this while having multiple moderators/admins.

Anyone deal with something like this in the past?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Dealing with multiple Administrators

Post by s.dot »

There are multiple ways you can deal with this:

1) Do something like a wiki does.. every time the story is edited and saved, make an archive of the save. If someone overwrites, it can be easily retrieved.

2) Allow access to one administrator at a time, say based on a time stamp in the last 15 minutes.

3) Assign different stories to different administrators and only let them work on those particular stories.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply