Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
TAM
Merge requests
!253
Fix "Access Denied" Bug
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Fix "Access Denied" Bug
143-fix-access-denied-bug
into
dev
Overview
2
Commits
4
Pipelines
11
Changes
4
Merged
Fix "Access Denied" Bug
Timur Oberhuber
requested to merge
143-fix-access-denied-bug
into
dev
Jan 12, 2023
Overview
2
Commits
4
Pipelines
11
Changes
4
Description
Resolves the bug with some lecturers/professors not being able to access the manage page.
LabraCore MR
:
labracore!195 (merged)
LabraDoor MR
:
labradoor!73 (merged)
Related Issues
Resolves
#143 (closed)
Checklist
I have added a changelog entry to reflect the significant changes I made.
Edited
Jan 19, 2023
by
Timur Oberhuber
0
0
Merge request reports
Compare
dev
version 3
cc1dd5d7
Jan 26, 2023
version 2
dbe0750b
Jan 19, 2023
version 1
40127904
Jan 12, 2023
dev (base)
and
latest version
latest version
e12a3dc5
4 commits,
Feb 13, 2023
version 3
cc1dd5d7
3 commits,
Jan 26, 2023
version 2
dbe0750b
2 commits,
Jan 19, 2023
version 1
40127904
1 commit,
Jan 12, 2023
4 files
+
15
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
src/main/java/nl/tudelft/tam/security/AuthorisationService.java
+
2
−
1
View file @ e12a3dc5
Edit in single-file editor
Open in Web IDE
Show comments on this file
Show full file
@@ -145,7 +145,8 @@ public class AuthorisationService {
* @return true if the authenticated person is a manager of a course
*/
public
boolean
isManagerOfAny
()
{
return
isAdmin
()
||
authApi
.
hasManagerRoleInAnyCourse
(
getAuthPerson
().
getId
()).
block
();
return
isAdmin
()
||
isStaff
()
||
authApi
.
hasTeacherRoleInAnyCurrentEdition
(
getAuthPerson
().
getId
()).
block
();
}
/**
Loading