I'm trying to get a handle on groups/permissions.
Example of what I am trying to do:
- I have the calendar module setup and working fine (as site wide
administrator I can post and edit calendar entries)
- I would like registered users to be able to post entries
- Would like for selected users to be able to administer the calendar
(not too concerned about being able to edit others entries)
My approach has been as follows:
So that only registered users can post entries I have put the
following in the appropriate post-new files:
if { $user_id == 0 } {
ns_returnredirect "/register/index.tcl?[export_url_scope_vars]
&return_url=[ns_urlencode [ns_conn url]]"
return
}
This seems to work okay.
To get users set up so they can access the admin pages:
- create a user group in Administration called Administration Group
for Calendar
- add users to this group that I want to administer the calendar
- put the following in the /calendar/admin/ pages
ad_sco