65 Posts
Wissner
4 years ago
2
Topic

Hi there,

I have a public seblod form for users to declare their join to a society.
For data protection reasons, the content, which is saved, has to have the super user access level.

Is this possible? As now, when I try to save the form with the access-level put to super-user, nothing is saved. 

I also thought about saving the content and writing a plugin which does a "onContentAfterSave"-action, to change the access-Level.

But maybe there exists a more simple solution.  :-)

Thank you

Get a Book for SEBLOD
1283 Posts
Bucklash
4 years ago
0
Level 1

If not plugin them just use an beforestore/afterstore field.

If you can change value beforestore then will have to do afterstore.

$fields[‘art_access’]-value = 8;

or reload from db ...

https://www.seblod.com/resources/manuals/developer/manipulating-content-count-find-search-methods

4 years ago
0
Level 1

Hello Wolfgang Claus,

simply put the live value as "Super User" on the field "Access":  

and put the variation "hidden" on this field.


Regards.

Get a VIP membership