Verified Commit 63e96e73 authored by Taico Aerts's avatar Taico Aerts
Browse files

WIP notes permissions

parent 58df3b1a
......@@ -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?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment