src/domain/grants.py
BeforeProposed
+1−1
2727 allowed = request['status'] == 'active'
2828 allowed = allowed and command['actor'] == request['applicant']
2929 allowed = allowed and command['scope'] in request['scopes']
30 allowed = allowed and now <= request['expiresAt'] if allowed else False
30 allowed = allowed and now < request['expiresAt'] if allowed else False
3131 return {'allowed': allowed}
3232
3333def listing(state, command):