mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Task #1355:
- If the sender of a message is an admin: show all the vorlage with mimetype = text/html - If the sender of a message is NOT an admin: show all the vorlage that belongs to the organisation units of the user and the parents of those organisation units until the root of the organisation unit tree Changes: - Added method isAdminByPersonId to model Benutzerrolle_model - Added method _getAllHTMLVorlage to Vorlage_widget - Added method _getUserVorlage to Vorlage_widget
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
<?php
|
||||
echo $this->widgetlib->widget(
|
||||
'Vorlage_widget',
|
||||
array('oe_kurzbz' => $oe_kurzbz),
|
||||
array('oe_kurzbz' => $oe_kurzbz, 'isAdmin' => $isAdmin),
|
||||
array('name' => 'vorlage', 'id' => 'vorlageDnD')
|
||||
);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user