13 lines
277 B
Python
13 lines
277 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from django.contrib.auth.decorators import user_passes_test
|
|
|
|
|
|
def kfet_is_team(user):
|
|
return user.has_perm('kfet.is_team')
|
|
|
|
def can_force_close(user):
|
|
return user.has_perm('force_close_kfet')
|
|
|
|
teamkfet_required = user_passes_test(kfet_is_team)
|