clowder-framework / clowder

A data management system that allows users to share, annotate, organize and analyze large collections of datasets. It provides support for extensible metadata annotation using JSON-LD and a distribute analytics event bus for automatic curation of uploaded data.
https://clowderframework.org/
University of Illinois/NCSA Open Source License
33 stars 17 forks source link

add readonly mode #406

Closed robkooper closed 10 months ago

robkooper commented 1 year ago

tested with create spaces/datasets/files but might be missing special cases. fixes #405

Description

A request was made to be able to mark users as read-only. They should not be able to create new spaces, or anything else. All they can do is view things.

Use 2 users, an admin user and set the second user to readonly

See if the readonly user can do any write operations, create spaces/datasets/collections/files/tags/comments etc.

Review Time Estimate

Types of changes

Checklist:

max-zilla commented 1 year ago

tested this, was able to create a dataset using Create Dataset button on the explore page when logged in as user with status set to ReadOnly (db.social.users.update({ "_id" : ObjectId("64248e486635dbcac3f867ab")}, {$set: {"status": "ReadOnly"}});)