WebGUI
      Click here to register.
      
PBWG Banner


     Report a Bug > WebGUI Bug Tracker

Calendar event edit should inherit

User erik.svanberg
Date 3/22/2007 6:56 am
Severity Critical (mostly not working)
Version WebGUI 7.3.10
Views 100
Rating -2    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
erik.svanberg

Some calendar issues:

Lets pretend following case for the calendar object
1. Who can read = everyone

2. Who can  edit = customGroup

3. Who can add/edit events = admins

The "Who can add/edit events" defaults to admins(3). 

My case is when a user that is member of  "customGroup" enters the calendar.
This user can add an event (since member of group in assetData.groupIdEdit)

The operation works and the Event is created, though the Event gets assetData.groupIdEdit=3. The user gets permission denied when entering this event!
So the event does not inherit from the calendar and that makes things ugly for us.

Also tested this on demo server in version 7.3.13.

/Erik 



Back to Top
Rate [
|
]
 
 
colink

Let me make sure I understand this:

Right now the problem is that users in customGroup are allowed to add events, but not edit them.

So the solution would be to:

1) Give them the ability to edit groups as well as add them, or

2) Prevent them from adding groups since they are not in groupIdEdit.

Doing #2 would be very, very simple. 

 



Back to Top
Rate [
|
]
 
 
DBell
Probably means that Event->canEdit should also check Calendar->canEdit.


Back to Top
Rate [
|
]
 
 
colink
I made Event->canEdit just return $self->getParent->canAddEvent, so it checks that the calendar has been committed.  Not only that, but that's the check that the calendar uses for displaying the Add Events link.

Back to Top
Rate [
|
]