Skip to content

Commit

Permalink
feat: digital credentials add admin revocation message (bcgov#2344)
Browse files Browse the repository at this point in the history
* fix: add role to credential data with tests

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: digital credentials decorator (bcgov#2337)

* feat: adds check for digital business card feature

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: better function naming

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* feat: decorator pto protect digital credentials endpoints

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: address code review comments

Signed-off-by: Akiff Manji <amanji@petridish.dev>

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* fix: test failures

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* refactor: update message for admin revocation

Signed-off-by: Akiff Manji <amanji@petridish.dev>

* chore: temporarily remove admin revoke updates

---------

Signed-off-by: Akiff Manji <amanji@petridish.dev>
  • Loading branch information
amanji authored Dec 4, 2023
1 parent e688d08 commit 18edba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions legal-api/src/legal_api/models/dc_revocation_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
class DCRevocationReason(Enum):
"""Digital Credential Revocation Reasons."""

ADMINISTRATIVE_REVOCATION = 'Your credential was revoked.'
UPDATED_INFORMATION = 'You were offered a new credential with updated information ' \
'and that revoked all previous copies.'
VOLUNTARY_DISSOLUTION = 'You chose to dissolve your business. ' \
Expand Down

0 comments on commit 18edba8

Please sign in to comment.