mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Infolog: Avoid changing contact or project links if user has no write permission
This commit is contained in:
parent
75d119f31f
commit
62aeccbb0f
@ -1094,10 +1094,14 @@ class infolog_bo
|
||||
* Checks for info_contact properly linked, project properly linked and
|
||||
* adds or removes to correct.
|
||||
*
|
||||
* @param Array $values
|
||||
* @param array $values
|
||||
*/
|
||||
protected function write_check_links(&$values)
|
||||
protected function write_check_links(array &$values)
|
||||
{
|
||||
if(!$this->bo->check_access($values, Acl::EDIT))
|
||||
{
|
||||
return;
|
||||
}
|
||||
$old_link_id = (int)$values['info_link_id'];
|
||||
$from = $values['info_from'];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user