- Correction in the tenant_list_view to only show 'partner tenants' in case the user is a partner admin.
- Edit Partner can only be executed by Super User - Give a more precise error message when a 403 client error is returned trying to get a URL.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import List
|
||||
from typing import List, Dict, Any
|
||||
|
||||
from flask import session
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
@@ -43,5 +43,11 @@ class PartnerServices:
|
||||
|
||||
return license_tier_ids
|
||||
|
||||
@staticmethod
|
||||
def get_management_service() -> Dict[str, Any]:
|
||||
management_service = next((service for service in session['partner']['services']
|
||||
if service.get('type') == 'MANAGEMENT_SERVICE'), None)
|
||||
return management_service
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user