Fixed issue when picking a primary character who is not blue/not in alliance

This commit is contained in:
Raynaldo Rivera
2014-11-05 13:54:43 -07:00
parent fe751ffc77
commit d4f16f49f1
3 changed files with 10 additions and 5 deletions

View File

@@ -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)

View File

@@ -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):