diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index 733cb98f40..ea38d51ef7 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -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);