mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-06 07:06:19 +01:00
Fixed issue when picking a primary character who is not blue/not in alliance
This commit is contained in:
@@ -41,4 +41,4 @@ def check_if_user_has_permission(user, permission):
|
||||
ct = ContentType.objects.get_for_model(User)
|
||||
stored_permission, created = Permission.objects.get_or_create(codename=permission,
|
||||
content_type=ct, name=permission)
|
||||
return user.has_perm(stored_permission)
|
||||
return user.has_perm('auth.' + permission)
|
||||
@@ -33,7 +33,6 @@ def deactivate_services(user):
|
||||
if authinfo.forum_username != "":
|
||||
ForumManager.disable_user(authinfo.forum_username)
|
||||
AuthServicesInfoManager.update_user_forum_info("", "", user)
|
||||
AuthServicesInfoManager.update_main_char_Id("", user)
|
||||
|
||||
|
||||
def generate_corp_group_name(corpname):
|
||||
|
||||
Reference in New Issue
Block a user