Skip to content
Snippets Groups Projects
Commit 429bd874 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

partner can not create or publish learning objects

parent f27b4689
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ class LearningObjectPolicy < ApplicationPolicy
end
def create?
record if (user_exists? && user.is_submitter?) || (user_exists? && user.is_partner?)
record if (user_exists? && user.is_submitter?)
end
def update?
......@@ -46,7 +46,7 @@ class LearningObjectPolicy < ApplicationPolicy
end
def publish?
record if (user_can_curate? && record.submitted?) || user.is_partner?
record if (user_can_curate? && record.submitted?)
end
def destroy?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment