chore: init commit

in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
2026-08-11 14:44:09 -04:00
parent 0012380fd3
commit 2854619bc9
782 changed files with 65944 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
class PortfolioPolicy < ApplicationPolicy
def show?
return false if user.blank?
return true if user.admin?
return true if record.user_id == user.id
user.teacher? && teacher_access?
end
private
def teacher_access?
teacher_ids = record.user&.classroom&.teacher_ids
teacher_ids&.include?(user.id)
end
end