mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-09 09:52:19 +00:00
6ca754f8a4
Request "profile" scope over OpenID so we can get a few more bits of information when avilable. Add a "clear_perissions" script Add an "add_permissions" script Add an "add_permissions" script When logging in for the first time, check for any awaiting permissions and assign them. Add "enumerate" as a whitelisted function to React Schema Add a "display_name" to the user table Add a test for adding a new permission Add a test for adding a user to group Adding a test for deleting all permissions. Adding a display name for the user table
16 lines
481 B
Python
16 lines
481 B
Python
"""Deletes all permissions and then re-imports from yaml file."""
|
|
from spiffworkflow_backend import get_hacked_up_app_for_script
|
|
from spiffworkflow_backend.services.authorization_service import AuthorizationService
|
|
|
|
|
|
def main() -> None:
|
|
"""Main."""
|
|
app = get_hacked_up_app_for_script()
|
|
with app.app_context():
|
|
AuthorizationService.delete_all_permissions()
|
|
AuthorizationService.import_permissions_from_yaml_file()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|