enonic / app-applications

Enonic XP - Applications app
GNU General Public License v3.0
1 stars 2 forks source link

Support readonly mode #203

Closed rymsha closed 3 years ago

rymsha commented 4 years ago

app-applications should have a configuration flag to effectively work in read only mode. All of the action buttons in the toolbar (Install, Uninstall, Start and Stop) should then be invisible.

alansemenov commented 4 years ago

Do you have a use-case example? Shouldn't this be based on permissions, like "App Administrator" role that can install/uninstall apps while regular user cannot?

rymsha commented 4 years ago

this is not about users, it is in general when XP comes with preinstalled apps we may want to disable installing new ones via app-applications.

alansemenov commented 4 years ago

ok, do we want one setting for both install and uninstall or two different ones? also, is it allowed to start/stop apps but not install/uninstall?

sigdestad commented 4 years ago

This is for Enonic Cloud, to prevent users from installing apps directly in Enonic XP. It would probably be smart if Install button was available. The modal should thrn says this is a managed instance, and to contact your XP administrator to Install or similar?

alansemenov commented 4 years ago

Ok, I can see this is far from being a ready task description, definitely not "Current Sprint". I'll set "To Be Discussed" label on this until we decide how this should work/look.

alansemenov commented 3 years ago

@ashklianko Call config readonlyMode. It has to be explicitly set to true, any other value or missing config should be treated as false (like here).

When app-applications is in readonly mode:

Also check that no actions are visible in the mobile mode.