profcturner / WAM

Workload Allocation Modeller and Assessment Approval System
GNU Affero General Public License v3.0
4 stars 0 forks source link

Allow a package to be "hidden" #6

Closed profcturner closed 6 years ago

profcturner commented 6 years ago

Allow a package to be hidden from sight unless the logged in user is a SuperUser perhaps?

profcturner commented 6 years ago

Currently the packages that staff members can change to our defined in get_all_packages() in the Staff object. Therefore, a hidden field could be filtered here. The only real question it how to decide if the user had override. Superuser is maybe too strong... We need a kind of "normal" admin user. It could be from anyone that has permission to "create" a work package, perhaps.

profcturner commented 6 years ago

This is now done. Packages are visible to Staff members who are in them. Hidden ones additionally require that the underlying User has the is_staff flag selected.