Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Command list options  (Read 795 times)
0 Members and 1 Guest are viewing this topic.
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« on: November 19, 2005, 06:15:00 PM »

With CalendarScript 3.21, MetaCalendar, Split Recurring Event, Move Event, and Delete Old --

I've been running with just me as Administrator and one user with pretty full permissions with no problem. This weekend I'm expanding the user base, but the added users only have permission to add/edit/delete on one calendar, though they can view all. Anonymous users can view all *except* this one calendar. This is also the first time I've activated the Command List, because previously the two of us just used the Admin interface.

When I log in as Administrator, the Command List includes Search, Add Event, Edit Events, Admin, Login.

When I log in to test anybody else's access, the Command List includes Search, Admin, Login.

Shouldn't it include Add Event and Edit Events, but not Admin?

The code doesn't look modified in the Show Command List section of the template. What should I be looking for?

Many thanks,
 Terry

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: November 20, 2005, 12:11:00 AM »

** Shouldn't it include Add Event and Edit Events, but not Admin? **

If the user that is logged in has Add Event permissions for the current calendar, yes Add Event should be an option. If the user that is logged in has Edit Event permissions for the current calendar, yes Edit Event should be an option.

The "Admin" option will be shown if the currently logged user has any administration permissions like add, edit, delete, change password, etc., etc.. The link will just take them to an administration menu which only shows the options they have permission for. Try it and see.

The search option is also always shown, it is a basic function of the calendar. It is not dependent on being logged in or having any special permissions.

Dan O.


------------------

Logged
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« Reply #2 on: November 20, 2005, 07:17:00 PM »

Thank you, DanO -- you explained it perfectly. I was just expecting something different -- not thinking about it being tied to the *current calendar*, and so I thought I might have messed up the template somehow. Good to know. Since the current calendar is always the comprehensive (default) MetaCalendar, the Admin option will always be showing.

** The link will just take them to an administration menu which only shows the options they have permission for. Try it and see. **

You're right, of course, and it looks like I've got the permissions set so that users have access only to what I want them to be able to do.

Is there a way, though, to have only those calendars appear in the list for which the user has permission to do something *more* than View Calendar? That way if a user can only Add or Delete/Edit on one calendar, all 8 of the calendars wouldn't show up in the list, just the one for which they can actually enter or change an event?

Thanks for all your super work!
 Terry

By the way, I've now added Redirector2 and it's working well, even with the Split Recurring Events plug-in enabled (but below it in the plug-ins list).

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: November 21, 2005, 01:27:00 AM »

** Is there a way, though, to have only those calendars appear in the list **

Appear in what list??

** I've now added Redirector2 and it's working well **

Glad to hear it.

Dan O.

------------------

Logged
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« Reply #4 on: November 21, 2005, 01:44:00 AM »

** Is there a way, though, to have only those calendars appear in the list **

*Appear in what list??*

Sorry for being unclear.

When a user logs in, and clicks on Admin to access the Administration menu, the user will always have to change calendars (because the default calendar is the comprehensive MetaCalendar). In my particular situation, the new users only have permission to add/delete/edit events on the Staff calendar.

When the user selects the Change Calendar option, the entire list of 8 calendars appears in the Select Calendar menu (because every named user has permission to view every calendar).

It would simplify the process for these new users if the Select Calendar menu only displayed the calendar(s) for which those users have permission to add/delete/edit events.

Can I modify the template to do this? And if so, how? (Or are there reasons why this mod should *not* be added?)

Many thanks,
 Terry


------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #5 on: November 21, 2005, 12:34:00 PM »

** if the Select Calendar menu only displayed the calendar(s) for which those users have permission to add/delete/edit events. **

The Meta Calendar plug-in's Select Calendar template limits the display to just those calendars the users have 'View' permissions for. Maybe you can modify it to look for those other permissions?

 BTW. You may run into problems with that template if no acceptable calendars are found for a user to choose from.

Dan O.

------------------

Logged
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« Reply #6 on: November 21, 2005, 04:58:00 PM »

**The Meta Calendar plug-in's Select Calendar template limits the display to just those calendars the users have 'View' permissions for. Maybe you can modify it to look for those other permissions?**

Thank you, DanO -- I wouldn't have known what to zero in on without your help, but I see that section of the template, and I'll give it a test drive tonight when nobody but me will be trying to access it. I'll post any success/failure.

Terry

------------------

Logged
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« Reply #7 on: November 21, 2005, 09:10:00 PM »

"I see that section of the template, and I'll give it a test drive tonight when nobody but me will be trying to access it. I'll post any success/failure."

I changed "VIEW" to "ADD_EVENT" in the select_calendar template, and it does display only the one calendar that the user has permission to add events to.

The curious thing is that when I select the calendar and then click on "Continue", I get the message to please select a calendar before continuing, and I can't proceed.

If I change the permissions so that the user has permission to add events to a second calendar, the Select Calendar list shows those two calendars, and then I *can* select one of them and continue with no problem.

Question: Can you point me to another tweak that would allow a user to continue if there is only one calendar option to select, and that calendar is selected with the radio button, and then Continue is clicked?

Many thanks,
 Terry

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #8 on: November 22, 2005, 04:50:00 PM »

** when I select the [one] calendar and then click on "Continue", I get the message to please select a calendar before continuing, and I can't proceed... Can you point me to another tweak that would allow a user to continue if there is only one calendar option to select? **

I'm afraid it has been a long time since I did anything with that template and I don't know where the problem lies.

Sorry.

Dan O.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #9 on: November 22, 2005, 10:17:00 PM »

If there will only be one entry, maybe make it a hidden form field instead of a radio button?

Or maybe make sure the radio form field is 'checked' when printed??

Just guesses though.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: