Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Forum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
Project Forum
Project Forum
Merge requests
!557
Resolve "Bug: url manipulation to access course that is not yet approved / public"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Bug: url manipulation to access course that is not yet approved / public"
99-bug-url-manipulation-to-access-course-that-is-not-yet-approved-public
into
development
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Resolve "Bug: url manipulation to access course that is not yet approved / public"
Taico Aerts
requested to merge
99-bug-url-manipulation-to-access-course-that-is-not-yet-approved-public
into
development
Jun 3, 2021
Overview
0
Commits
1
Pipelines
0
Changes
1
Closes
#99 (closed)
Edited
Jun 3, 2021
by
Taico Aerts
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
7514c42b
1 commit,
Jun 3, 2021
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
app/models/ability.rb
+
1
−
1
View file @ 7514c42b
Edit in single-file editor
Open in Web IDE
Show full file
@@ -310,7 +310,7 @@ class Ability
# For normal projects, the user can see both pending and approved projects
# TODO: Should eventually be changed to only approved projects?
can
:index
,
Project
can
:show
,
Project
,
id:
Project
.
pending
.
where
(
course_edition_id:
course_edition_ids
).
ids
can
:show
,
Project
,
id:
Project
.
approved
.
where
(
course_edition_id:
course_edition_ids
).
ids
can
:index
,
ProjectPreference
# For theses, the user can read thesis projects, themes and research groups
Loading