mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
handeling user with not enougth permissions on the other scripts
This commit is contained in:
parent
c707a57634
commit
0cf63c3aa0
@ -102,6 +102,9 @@ def get_graph_by_moduleid (baseUrl,pUser, pPass, apiPass, moduleId, graphInterva
|
|||||||
if graph.text == "Id does not exist in database.":
|
if graph.text == "Id does not exist in database.":
|
||||||
print (f"Error requested Pandora api url, status code: {graph.text}. skipping graph generation")
|
print (f"Error requested Pandora api url, status code: {graph.text}. skipping graph generation")
|
||||||
return None
|
return None
|
||||||
|
if graph.text == "The user has not enough permissions for perform this action.":
|
||||||
|
print (f"Error requested Pandora api url, status code: {graph.text} Skiping graph generation")
|
||||||
|
return None
|
||||||
except:
|
except:
|
||||||
print("Error requested api url. skipping graph generation")
|
print("Error requested api url. skipping graph generation")
|
||||||
return None
|
return None
|
||||||
|
@ -106,6 +106,9 @@ def get_graph_by_moduleid (baseUrl,pUser, pPass, apiPass, moduleId, graphInterva
|
|||||||
if graph.text == "Id does not exist in database.":
|
if graph.text == "Id does not exist in database.":
|
||||||
print (f"Error requested Pandora api url, status code: {graph.text}. skipping graph generation")
|
print (f"Error requested Pandora api url, status code: {graph.text}. skipping graph generation")
|
||||||
return None
|
return None
|
||||||
|
if graph.text == "The user has not enough permissions for perform this action.":
|
||||||
|
print (f"Error requested Pandora api url, status code: {graph.text} Skiping graph generation")
|
||||||
|
return None
|
||||||
|
|
||||||
except:
|
except:
|
||||||
print("Error requested api url. skipping graph generation")
|
print("Error requested api url. skipping graph generation")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user