* Calendar: fixed not savable config "Prevent deleting of entries" as "Yes, users can purge their deleted items"

renamed from "user_purge" to "userpurge" (without underscore) as config can not handle situation when name and value contains underscores
This commit is contained in:
Ralf Becker 2012-05-15 10:36:01 +00:00
parent 6c160cd3b1
commit ac09e58bea
2 changed files with 3 additions and 3 deletions

View File

@ -1180,10 +1180,10 @@ class calendar_bo
$access = $user == $owner || $grant & $needed $access = $user == $owner || $grant & $needed
&& ($needed == EGW_ACL_FREEBUSY || !$private || $grant & EGW_ACL_PRIVATE); && ($needed == EGW_ACL_FREEBUSY || !$private || $grant & EGW_ACL_PRIVATE);
} }
// do NOT allow users to purge deleted events, if we dont have 'user_purge' enabled // do NOT allow users to purge deleted events, if we dont have 'userpurge' enabled
if ($access && $needed == EGW_ACL_DELETE && $event['deleted'] && if ($access && $needed == EGW_ACL_DELETE && $event['deleted'] &&
!$GLOBALS['egw_info']['user']['apps']['admin'] && $user != $this->user && !$GLOBALS['egw_info']['user']['apps']['admin'] && $user != $this->user &&
$GLOBALS['egw_info']['server']['calendar_delete_history'] != 'user_purge') $GLOBALS['egw_info']['server']['calendar_delete_history'] != 'userpurge')
{ {
$access = false; $access = false;
} }

View File

@ -83,7 +83,7 @@
<select name="newsettings[calendar_delete_history]"> <select name="newsettings[calendar_delete_history]">
<option value="">{lang_No}</option> <option value="">{lang_No}</option>
<option value="history"{selected_calendar_delete_history_history}>{lang_Yes,_only_admins_can_purge_deleted_items}</option> <option value="history"{selected_calendar_delete_history_history}>{lang_Yes,_only_admins_can_purge_deleted_items}</option>
<option value="user_purge"{selected_calendar_delete_history_user_purge}>{lang_Yes,_users_can_purge_their_deleted_items}</option> <option value="userpurge"{selected_calendar_delete_history_userpurge}>{lang_Yes,_users_can_purge_their_deleted_items}</option>
</select> </select>
</td> </td>
</tr> </tr>