forked from MarseyWorld/MarseyWorld
fix cartesian product
parent
6b5f87a638
commit
d6dda995af
|
@ -201,7 +201,7 @@ def notifications_modactions(v:User):
|
||||||
listing = listing.filter(cls.kind.in_(('ban_user','unban_user','shadowban','unshadowban')))
|
listing = listing.filter(cls.kind.in_(('ban_user','unban_user','shadowban','unshadowban')))
|
||||||
|
|
||||||
if v.admin_level < PERMS['PROGSTACK']:
|
if v.admin_level < PERMS['PROGSTACK']:
|
||||||
listing = listing.filter(ModAction.kind.notin_(MODACTION_PRIVILEGED__TYPES))
|
listing = listing.filter(cls.kind.notin_(MODACTION_PRIVILEGED__TYPES))
|
||||||
|
|
||||||
if cls == SubAction:
|
if cls == SubAction:
|
||||||
listing = listing.filter(cls.sub.in_(v.moderated_subs))
|
listing = listing.filter(cls.sub.in_(v.moderated_subs))
|
||||||
|
|
Loading…
Reference in New Issue