mirror of
https://github.com/ae-utbm/sith.git
synced 2026-11-20 16:09:54 +00:00
Check
This commit is contained in:
1 parent
fc961f6511
commit
fb25e4586e
6 files changed
+99
-47
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
def can_be_edited_by(user: User, club: Club):
|
||||
return user.groups.contains(club.stock_group) or user.is_root
|
||||
return user.is_in_group(pk=club.stock_group) or user.is_root
|
||||
|
||||
|
||||
def can_be_view_by(user: User, club: Club, stock: Stock):
|
||||
|
||||
Reference in new issue
Block a user