donejs / bitballs

A basketball tourney application.
https://donejs.com/bitballs.html
MIT License
11 stars 17 forks source link

NHT: Users shall be able to create “stats." #345

Open josh-bitovi opened 5 years ago

josh-bitovi commented 5 years ago

To expand the number of people who can create stats and reduce the amount of time that admins spend entering them users with accounts can create stats. Note that users and Players are not the same thing. A user has an account, a Player is an object in the DB. A person does not have to be a Player to be a user.

Users do not have to be granted permission to add stats, they only need to create an account using the normal process. The user will not be able to do any other tasks; for example deleting games or creating Players.

Original documentation Stats created by non-admin users ("players") should be: - Shown by default - Marked as "unapproved" or "needs approval" to admin viewers - Can be approved by admins, in which case it becomes a "normal" stat - Retain creator UID We may also need an admin UI for listing unapproved stats... but... 1. Spin that off into another issue, before this one is closed 2. Allow admins to approve stats inline in the usual video player