holium / ballot

An Urbit app for voting on proposals and polls.
MIT License
2 stars 0 forks source link

Create proposal permissions #59

Closed drunkplato closed 2 years ago

drunkplato commented 2 years ago

Permissions

A booth owner (group-owner) should be able to:

Permission list:

All of these permissions should essentially allow or disallow a participant from accessing various endpoints on the host.

In a settings page of the UI you would be able to set permissions (to be designed). Essentially it would work like this:

const adminPermissions = [`read-proposal`, `vote-proposal`, `create-proposal`, `edit-proposal`, `delete-proposal`, `add-member`, `remove-member`, `change-settings`]
const memberPermissions = [`read-proposal`, `vote-proposal`]

The owner role could do everything.

It's almost like every action has a permission associated with it.