Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
EIP
Project Forum
Project Forum
Commits
63e96e73
Verified
Commit
63e96e73
authored
May 11, 2020
by
Taico Aerts
Browse files
WIP notes permissions
parent
58df3b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/notes_controller.rb
View file @
63e96e73
...
...
@@ -30,6 +30,8 @@ class NotesController < ApplicationController
# Enforce that students and externals can only add notes with
# 'group_members' access.
#
# TODO: Needs to be instead based on permissions
prms
[
:access_level
]
=
:group_members
\
if
current_user
.
role_student?
||
current_user
.
external?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment