fixed debugs
This commit is contained in:
parent
b5dc643dac
commit
2a04acb278
1 changed files with 0 additions and 8 deletions
|
|
@ -247,19 +247,13 @@ def _getInstancePermissions(rootInterface, userId: str, instanceId: str) -> Dict
|
|||
# Get FeatureAccess for this user and instance (Pydantic model)
|
||||
featureAccess = rootInterface.getFeatureAccess(userId, instanceId)
|
||||
|
||||
logger.debug(f"_getInstancePermissions: userId={userId}, instanceId={instanceId}, featureAccess={featureAccess is not None}")
|
||||
|
||||
if not featureAccess:
|
||||
logger.debug(f"_getInstancePermissions: No FeatureAccess found for user {userId} and instance {instanceId}")
|
||||
return permissions
|
||||
|
||||
# Get role IDs via interface method
|
||||
roleIds = rootInterface.getRoleIdsForFeatureAccess(str(featureAccess.id))
|
||||
|
||||
logger.debug(f"_getInstancePermissions: featureAccessId={featureAccess.id}, roleIds={roleIds}")
|
||||
|
||||
if not roleIds:
|
||||
logger.debug(f"_getInstancePermissions: No roles found for FeatureAccess {featureAccess.id}")
|
||||
return permissions
|
||||
|
||||
# Check if user has admin role
|
||||
|
|
@ -274,8 +268,6 @@ def _getInstancePermissions(rootInterface, userId: str, instanceId: str) -> Dict
|
|||
# Get all rules for this role (returns Pydantic models)
|
||||
accessRules = rootInterface.getAccessRules(roleId=roleId)
|
||||
|
||||
logger.debug(f"_getInstancePermissions: roleId={roleId}, accessRules={len(accessRules) if accessRules else 0}")
|
||||
|
||||
for rule in accessRules:
|
||||
context = rule.context
|
||||
item = rule.item or ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue