def get_roles_with_permission(permission):
 roles = []
 for role in ROLE_PERMISSIONS:
  permissions = ROLE_PERMISSIONS[role]
  if ((permission in permissions) or ('admin' in permissions)):
   roles.append(role)
 return roles

def get_roles_with_permission ( permission ) : roles = [ ] for role in ROLE_PERMISSIONS : permissions = ROLE_PERMISSIONS [ role ] if ( ( permission in permissions ) or ( 'admin' in permissions ) ) : roles . append ( role ) return roles
returns the roles with the permission requested .