Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature requests (1) hide row creation by "rowcreation: 0" (2) hide deletion by "deletion:0" in global schema editing #649

Open
paul-jh opened this issue Jul 16, 2023 · 1 comment

Comments

@paul-jh
Copy link

paul-jh commented Jul 16, 2023

For global schema edits it would be nice to have an option "rowcreation"
that enables [default] or disables the row creation editor below the editor.
The users then are able to edit data that was prepared by admins but
not to alter (enhance) the database by new data sets.

For example this:

---- struct global ----
schema: socialmedia
cols: name, link
rowcreation: 0
----

should prevent the user from adding any new data set to the schema
by hiding the form for row creation.

I tried to implement this on my own. In [1] there is a diff(1) logfile showing the differences
btw. the original struct files and those modified by me.
It works, but i am quite sure, i missed some crucial points (...).

[1] struct.diff.log

p.s.:
As far as i can see, there is no option to prevent the user from deletion in global schema editing.
I would also love to have a switch for this (i.e. hiding the trash-icons from the user), e.g. by a syntax like this ("deletion:0"):

---- struct global ----
schema: socialmedia
cols: name, link
deletion: 0
----
@splitbrain
Copy link
Member

For implementing this the current "allowed editors" configuration of schema would need to be extended into a more complex setting. Allowing to differentiate between different write access (edit, create, delete) and possibly different schema uses (global, serial, page).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants