Montre les infos à tout le monde
This commit is contained in:
parent
8d30c5c7e5
commit
fc8c8fdf29
|
@ -329,8 +329,9 @@ def account_update(request, trigramme):
|
||||||
if not request.user.has_perm("kfet.is_team") and request.user != account.user:
|
if not request.user.has_perm("kfet.is_team") and request.user != account.user:
|
||||||
raise PermissionDenied
|
raise PermissionDenied
|
||||||
|
|
||||||
if request.user.has_perm("kfet.is_team"):
|
|
||||||
user_info_form = UserInfoForm(instance=account.user)
|
user_info_form = UserInfoForm(instance=account.user)
|
||||||
|
|
||||||
|
if request.user.has_perm("kfet.is_team"):
|
||||||
group_form = UserGroupForm(instance=account.user)
|
group_form = UserGroupForm(instance=account.user)
|
||||||
account_form = AccountForm(instance=account)
|
account_form = AccountForm(instance=account)
|
||||||
pwd_form = AccountPwdForm()
|
pwd_form = AccountPwdForm()
|
||||||
|
@ -342,7 +343,6 @@ def account_update(request, trigramme):
|
||||||
else:
|
else:
|
||||||
negative_form = None
|
negative_form = None
|
||||||
else:
|
else:
|
||||||
user_info_form = None
|
|
||||||
account_form = AccountRestrictForm(instance=account)
|
account_form = AccountRestrictForm(instance=account)
|
||||||
group_form = None
|
group_form = None
|
||||||
negative_form = None
|
negative_form = None
|
||||||
|
|
Loading…
Reference in a new issue