edit field priority only with right basis/prestudent

This commit is contained in:
ma0068
2024-02-12 09:18:33 +01:00
parent 898f40e8a5
commit a21a5ce044
3 changed files with 12 additions and 3 deletions
@@ -21,7 +21,9 @@ class Studentenverwaltung extends FHC_Controller
$this->load->view('Studentenverwaltung', [
'permissions' => [
'student/bpk' => $this->permissionlib->isBerechtigt('student/bpk'),
'student/alias' => $this->permissionlib->isBerechtigt('student/alias')
'student/alias' => $this->permissionlib->isBerechtigt('student/alias'),
'basis/prestudent' => $this->permissionlib->isBerechtigt('basis/prestudent'),
],
'variables' => [
'semester_aktuell' => $this->variablelib->getVar('semester_aktuell')
@@ -50,6 +50,7 @@ export default {
configShowZgvErfuellt: this.config.showZgvErfuellt,
hasBpkPermission: this.permissions['student/bpk'],
hasAliasPermission: this.permissions['student/alias'],
hasPrestudentPermission: this.permissions['basis/prestudent'],
lists: this.lists
}
},
@@ -20,6 +20,10 @@ export default {
from: 'configShowZgvDoktor',
default: false
},
hasPrestudentPermission: {
from: 'hasPrestudentPermission',
default: false
},
},
props: {
modelValue: Object
@@ -41,6 +45,8 @@ export default {
actionUpdate: false
};
},
computed: {
},
watch: {
},
@@ -496,13 +502,13 @@ export default {
<option :value="false">nein</option>-->
</form-input>
</div>
<!-- Todo(manu) an Recht basis/prestudent hänaen -->
<form-input
container-class="col-1"
label="Priorität"
type="text"
v-model="data.priorisierung"
name="priorisierung"
:disabled="!hasPrestudentPermission"
>
</form-input>
</div>
@@ -524,7 +530,7 @@ export default {
<br>
{{showZgvDoktor}} || {{generateAlias}} || {{showZgvErfuellt}}
{{hasPrestudentPermission}}
<!-- <hr>
Data: {{data}}
<hr>-->