Fixed max students teacher permissions
This commit is contained in:
parent
b5503507b6
commit
718321c1f5
|
@ -14,9 +14,7 @@ module MW
|
|||
end
|
||||
|
||||
@[GraphQL::Field]
|
||||
def max_students(context : Context) : Int32
|
||||
context.admin!
|
||||
|
||||
def max_students : Int32
|
||||
find!.max_students
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue