sarting to generalize profiles

This commit is contained in:
2023-01-16 00:17:22 +02:00
parent 485c0475b7
commit 4ffc6e3c85
26 changed files with 165 additions and 207 deletions

View File

@ -1,4 +1,4 @@
class TeacherPolicy < ApplicationPolicy
class ProfilePolicy < ApplicationPolicy
def edit?
(member == record.member) or member.admin?