mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 00:42:15 +00:00
edit field priority only with right basis/prestudent
This commit is contained in:
@@ -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>-->
|
||||
|
||||
Reference in New Issue
Block a user