diff --git a/include/tw/cis_menu_lv.inc.php b/include/tw/cis_menu_lv.inc.php index 529c1aa5a..6906bcc0f 100644 --- a/include/tw/cis_menu_lv.inc.php +++ b/include/tw/cis_menu_lv.inc.php @@ -241,7 +241,11 @@ function checkZeilenUmbruch() } // Digitale Anwesenheiten - if(CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN && $angemeldet) + if(CIS_LEHRVERANSTALTUNG_ANWESENHEIT_ANZEIGEN && $angemeldet + && ($rechte->isBerechtigt('extension/anw_ent_admin') + || $rechte->isBerechtigt('extension/anwesenheit_lektor') + || $rechte->isBerechtigt('extension/anwesenheit_student') + || $rechte->isBerechtigt('extension/anwesenheit_admin'))) { $link=''; diff --git a/public/js/components/filter/Filter.js b/public/js/components/filter/Filter.js index 047764609..6a668112c 100644 --- a/public/js/components/filter/Filter.js +++ b/public/js/components/filter/Filter.js @@ -42,7 +42,8 @@ export const CoreFilterCmpt = { }, emits: [ 'nwNewEntry', - 'click:new' + 'click:new', + 'uuidDefined' ], props: { onNwNewEntry: Function, // NOTE(chris): Hack to get the nwNewEntry listener into $props @@ -568,6 +569,7 @@ export const CoreFilterCmpt = { if (this.sideMenu && (!this.$props.onNwNewEntry || !(this.$props.onNwNewEntry instanceof Function))) alert('"nwNewEntry" listener is mandatory when sideMenu is true'); this.uuid = _uuid++; + this.$emit('uuidDefined', this.uuid) if (!this.tableOnly) this.getFilter(); // get the filter data }, @@ -658,4 +660,4 @@ export const CoreFilterCmpt = {
` -}; +}; \ No newline at end of file diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 008d2901d..b260d728c 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -28178,6 +28178,26 @@ array( ) ) ), + array( + 'app' => 'anwesenheiten', + 'category' => 'global', + 'phrase' => 'prestudentID', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Prestudent ID', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Prestudent ID', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), // // DIGITALE ANWESENHEITEN PHRASEN END //