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,21 @@
# frozen_string_literal: true
class GradeBookPolicy < ApplicationPolicy
def update?
user_is_teacher_of_classroom? || user.admin?
end
def show?
user_is_teacher_of_classroom? || user.admin?
end
def finalize?
user.admin?
end
private
def user_is_teacher_of_classroom?
user.teacher? && record.classroom.teachers.include?(user)
end
end