roleChecks.py (817B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\corporation\roles\roleChecks.py 2 import localization 3 from eve.common.script.sys import idCheckers 4 5 def CheckCanLaunchForCorp(corpID, corprole, whoseBehalfID, itemCategory): 6 isOrbital = idCheckers.IsOrbital(itemCategory) 7 if corpID != whoseBehalfID: 8 raise UserError('CantLaunchNotInCorp', {'corp': (const.UE_OWNERID, whoseBehalfID)}) 9 if cfg.eveowners.Get(corpID).IsNPC(): 10 raise UserError('CantLaunchCorpDoesntAllow', {'corp': (const.UE_OWNERID, corpID)}) 11 if isOrbital: 12 if const.corpRoleEquipmentConfig != const.corpRoleEquipmentConfig & corprole: 13 raise UserError('CrpAccessDenied', {'reason': localization.GetByLabel('UI/Corporations/AccessRestrictions/NotEquipmentConfigManager')})