jordan-dalby / ByteStash

A code snippet storage solution written in React & node.js
The Unlicense
225 stars 7 forks source link

[FEATURE] Read-only mode? #49

Open jabums opened 2 days ago

jabums commented 2 days ago

I recently set up an instance of ByteStash. So far I really like it for its practicability. In the newest release there was a basic authentication integrated. Thank for that.

Regularly I work in circumstances where I would like to share my snippets with others - but without them being able to alter or delete my collection. Maybe you could consider implementing a "read-only mode"? I think this might be useful for other users as well.

Thanks!

jordan-dalby commented 2 days ago

@jabums hey thanks for the suggestion.

By this do you mean a separate user login (for example), that only has read access?

If you want to just share single snippets that can't be edited, you can do that already.

jabums commented 2 days ago

Thanks for getting back so quickly! I will gladly try to clarify: For my use case it would be perfect if I could somehow configure for standard visitor of my instance (= not authenticated) to be able to see all snippets but not be able to add/modify or remove them. Thinking of scenarios in education. Maybe I can make further use of the sharing functionality in the meanwhile. I was not ware of this. (Still running version 1.3.0)

jordan-dalby commented 2 days ago

(= not authenticated)

I can see this working, maybe on the login page "View in read-only mode". I'd probably add an environment variable to enable that.