updated alert approvals
This commit is contained in:
@@ -196,3 +196,11 @@ def alert_get_stats(alert,nperiod=0):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# run alert report
|
# run alert report
|
||||||
|
|
||||||
|
# check alert permission
|
||||||
|
def checkalertowner(alert,user):
|
||||||
|
if alert.manager == user:
|
||||||
|
return True
|
||||||
|
if alert.rower.user == user:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user