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 {
for ( let checkType of checkTypes ) {
try {
switch ( checkType ) {
case SecurityCheckType.TEACHING_STAFF:
isAllowed = isAllowed || req.session.profile.isTeachingStaff;
break;
default:
isAllowed = isAllowed || false;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment