Skip to content
Snippets Groups Projects
Commit a8b146b2 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Merge branch 'master' into MigrationToDSpace6-3

parents fd3bc886 7c96d2b9
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ class LearningObjectPolicy < ApplicationPolicy ...@@ -41,7 +41,7 @@ class LearningObjectPolicy < ApplicationPolicy
end end
def update? def update?
record if user_can_update? && record.state == 'draft' record if ( user_can_update? && record.state == 'draft' ) || ( user.is_publisher? && user_can_update? )
end end
def publish? def publish?
......
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