readding codeharbor_link views and actions

This commit is contained in:
Karol
2019-08-26 19:06:52 +02:00
parent ecabd9d05c
commit ec48d1f447
20 changed files with 136 additions and 127 deletions

View File

@ -1,3 +1,31 @@
class CodeharborLinkPolicy < AdminOnlyPolicy
# frozen_string_literal: true
class CodeharborLinkPolicy < ApplicationPolicy
def index?
teacher?
end
def create?
teacher?
end
def show?
teacher?
end
def edit?
teacher?
end
def destroy?
teacher?
end
def new?
teacher?
end
def update?
teacher?
end
end