aratgt
Junior Member
Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
|
| posted on 12/18/2006 at 04:20 PM |
|
|
remove all user options
Is there a way to remove the delete/edit options for all users?
I need users only to be able to add events.
I want the admin to be the only group that can delete/edit events.
Thanks.
|
|
|
chronister
Member
Posts: 23
Registered: 8/24/2006
Member Is Offline
|
| posted on 12/20/2006 at 03:39 AM |
|
|
try looking in the users config page.
create a user and then assign the permissions you want. add / delete / edit others ...
simple
|
|
|
aratgt
Junior Member
Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
|
| posted on 12/20/2006 at 05:03 AM |
|
|
Yes I did that but the delete option is for the admin to delete the user. It does not
affect the delete/edit function for the user. I have one user, say Staff, and lots of
people that log in as that user to add events. I only want user Staff to be able to add events.
I want to be the one that determines whether the event should be deleted/edited.
If I could find the code to remove [delete] [edit] from the user page would help.
Because the passwords are not encrypted, I don't allow users to create their own
identities. So I have all users log in as the same person and I don't want one person
to be able edit/delete another persons' (logged in as the same user) event.
Hope I'm not confusing the issue. Thank you for the quick reply and I'll keep plugging
away to find the solution.
|
|
|
aratgt
Junior Member
Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
|
| posted on 12/20/2006 at 02:45 PM |
|
|
I found the proper code and commented it out. Problem solved.
Page works as requested.
|
|
|
HappyFeet
Junior Member
Posts: 4
Registered: 12/20/2006
Location: Eastern USA
Member Is Offline
|
| posted on 12/20/2006 at 11:41 PM |
|
|
aratgt,
Could you give the file name you edited and maybe past the code you edited also for a little more help.
Thanks in advance
|
|
|
aratgt
Junior Member
Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
|
| posted on 12/22/2006 at 06:26 AM |
|
|
The file was calendar.php
I changed the command in lines ~722 and 723 to read
if($a_groups[$__SESSION__['group']]['ev_edit'] || $__SESSION__['admin'] == $
i.e., at the end of the line ['admin'] used to read ['user']
This may not be the technically correct way to fix my problem, but
the page displays the way I want it to now.
|
|
|