gerva / tower-companion

Other
2 stars 1 forks source link

Set user permissions for template #36

Open michaelgaida opened 8 years ago

michaelgaida commented 8 years ago

It would be handy to be able to give a user permissions to execute a template.

this could look like that:

michaelgaida commented 8 years ago

POST /api/v1/users/31/roles/

        "POST": {
            "id": {
                "help_text": "Database ID for this role.",
                "type": "integer",
                "label": "ID"
            },
            "disassociate": {
                "help_text": "Provide to remove this role.",
                "type": "integer",
                "label": "Disassociate"
            }
michaelgaida commented 8 years ago

There is no way to create a role which to relate to the user, but I tested successful that the creation of a template automatically creates 3 roles which can be than related to the user:

  1. Admin
  2. Read
  3. Execute

GET /api/v1/roles