Hi
Checked trunk rev28095 enabling resource booking without direct permissions.
That is great ! But It only enables resource booking from resource list. When creating an event via calendar and trying to book a resource it diplays “you’re not allowed to book this resources” msg. Found it bit of non-sense when you can do it from resource list.
I’d like then being able to book a resource without direct booking permissions in the calendar_uiforms with same status as Unknown (this status making sense assuming res_cat manager didn’t agree yet).
To get to this, I modified class.calendar_uiforms.inc.php this way :
In function ‘process_edit’ | case : ‘resource’, lines 292 to 295
//$cats = $bores->acl->get_cats(EGW_ACL_DIRECT_BOOKING);
//if (is_array($cats) && $selectedres[‘bookable’] == 1 && $selectedres[‘cat_id’] && array_key_exists($selectedres[‘cat_id’],$cats))
Replaced this lines by new one just not checking res_cats booking rights when adding resource to event :
if ($selectedres[‘bookable’] == 1 && $selectedres[‘cat_id’])
Doing this I can now book resource when adding an event in calendar. Being testing this mod atm.
Doesn’t this make more sense to you ?
Is there anything I didn’t think about probs that can occurs ?
Regards
SamT