mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
close InfoLog edit window with "Permission denied!", if user has no read rights to an entry, happens eg. when clicking on elementlist in PM, which shows elements independent of read rights
This commit is contained in:
parent
8031564327
commit
24532ec3d7
@ -1903,7 +1903,10 @@ class infolog_ui
|
||||
$print = (int) $_REQUEST['print'];
|
||||
//echo "<p>infolog_ui::edit: info_id=$info_id, action='$action', action_id='$action_id', type='$type', referer='$referer'</p>\n";
|
||||
|
||||
$content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id );
|
||||
if (!($content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id )))
|
||||
{
|
||||
Framework::window_close(lang('Permission denied!'));
|
||||
}
|
||||
if (!(strpos($content['info_addr'],',')===false) && strpos($content['info_addr'],', ')===false) $content['info_addr'] = str_replace(',',', ',$content['info_addr']);
|
||||
foreach(array('info_subject', 'info_des') as $key)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user