readding codeharbor_link views and actions
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user