How to show only the current user to add information?

spotony - 4 months ago

When users add information, how to restrict the current user to add only add information? thank.

Answer

- 4 months ago

IMO this should be done through the front end - this kind of restriction screams not-an-admin to me ^_^

Either way though - just restrict access to the builder maybe with $builder->setReadOnly(true).

Try resolving the UserFormBuilder and adding a callback on it's ready callback: https://pyrocms.com/documentation/streams-platform/v1.1#services/callbacks

ryanthompson - 4 months ago

IMO this should be done through the front end - this kind of restriction screams not-an-admin to me ^_^

Either way though - just restrict access to the builder maybe with $builder->setReadOnly(true).

Try resolving the UserFormBuilder and adding a callback on it's ready callback: https://pyrocms.com/documentation/streams-platform/v1.1#services/callbacks