codeharbor_links editable through own profile

This commit is contained in:
Karol
2019-08-27 18:33:21 +02:00
parent ec48d1f447
commit 8c306669af
11 changed files with 116 additions and 56 deletions

View File

@ -2,6 +2,14 @@
class CodeharborLinkPolicy < ApplicationPolicy
def index?
false
end
def show?
false
end
def new?
teacher?
end
@ -9,23 +17,15 @@ class CodeharborLinkPolicy < ApplicationPolicy
teacher?
end
def show?
teacher?
end
def edit?
teacher?
end
def destroy?
teacher?
end
def new?
teacher?
end
def update?
teacher?
end
def destroy?
teacher?
end
end