meeting-room-booking-system / mrbs-code

MRBS application code
Other
120 stars 59 forks source link

Protected fields in `mrbs_entry`? #3731

Open stueja opened 3 weeks ago

stueja commented 3 weeks ago

Describe the problem you're facing/question you have From systemdefaults.inc.php:

// 'auth_db' configuration settings
// List of fields which only admins can edit.   By default these are the
// user level (ie admin/user) and the username.   Custom fields can be added
// as required.  To protect the password field use 'password_hash' - useful
// for public demo sites.
$auth['db']['protected_fields'] = array('level', 'name', 'display_name');

I assume that the protected fields are fields from the mrbs_users table.

Is there a similar thing for mrbs_entry/mrbs_repeat? Like an additional checkbox fortidied uporbill sent` or whatever which only administrators can edit and see.

Browser details (please complete the following information):

Server details (please complete the following information):

Additional context Add any other context or screenshots about the feature request here.

campbell-m commented 3 weeks ago

Is there a similar thing for mrbs_entry/mrbs_repeat? Like an additional checkbox for tidied uporbill sent` or whatever which only administrators can edit and see.

No, there isn't at the moment, but it's a good idea. I'll change this to an enhancement request,

campbell-m commented 3 weeks ago

... although users would still be able to view that field if it were protected, just not edit it. As I understand it you don't want them to be able to see or edit the field.

stueja commented 3 weeks ago

I frankly wouldn’t mind if they see it. But read-only would be nice.

campbell-m @.***> schrieb am Do. 22. Aug. 2024 um 23:05:

... although users would still be able to view that field if it were protected, just not edit it. As I understand it you don't want them to be able to see or edit the field.

— Reply to this email directly, view it on GitHub https://github.com/meeting-room-booking-system/mrbs-code/issues/3731#issuecomment-2305635733, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACF6SRWCBZONGXMS6MIJIM3ZSZHCTAVCNFSM6AAAAABM6ST7LSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGYZTKNZTGM . You are receiving this because you authored the thread.Message ID: @.***>