Skip to content
Snippets Groups Projects
Commit dd039b0f authored by michael.minelli's avatar michael.minelli
Browse files

Security => Add teaching staff permission check

parent a3d21732
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,9 @@ class SecurityMiddleware { ...@@ -33,6 +33,9 @@ class SecurityMiddleware {
for ( let checkType of checkTypes ) { for ( let checkType of checkTypes ) {
try { try {
switch ( checkType ) { switch ( checkType ) {
case SecurityCheckType.TEACHING_STAFF:
isAllowed = isAllowed || req.session.profile.isTeachingStaff;
break;
default: default:
isAllowed = isAllowed || false; isAllowed = isAllowed || false;
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment