mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fixed bug reported by jsantand:
deleting of resources by non priveleged users
This commit is contained in:
parent
7581ae6b53
commit
46e955fd0c
@ -240,6 +240,11 @@ class bo_resources
|
||||
*/
|
||||
function delete($res_id)
|
||||
{
|
||||
if(!$this->acl->is_permitted($this->so->get_value('cat_id',$res_id),EGW_ACL_DELETE))
|
||||
{
|
||||
return lang('You are not permitted to delete this reource!');
|
||||
}
|
||||
|
||||
if ($this->so->delete(array('res_id'=>$res_id)))
|
||||
{
|
||||
$this->remove_picture($res_id);
|
||||
|
Loading…
Reference in New Issue
Block a user