platform icon indicating copy to clipboard operation
platform copied to clipboard

Cannot modify some defaults (e.g. main, system permissions)

Open BenWoodford opened this issue 3 years ago • 2 comments

Some things are initialised in the PlatformServiceProvider class, rather than the OrchidServiceProvider that can be overridden. This means we are forced to have the main and system permissions for instance, despite them being entirely configurable in the routes and screens we have available to us.

The registration of the Main and System categories should really be in the OrchidServiceProvider class so that if the provider in the platform config is changed, it'll allow changing these permissions as well.

BenWoodford avatar Jul 08 '22 08:07 BenWoodford

Hi @BenWoodford I'm not sure about this. On the one hand, I want you to be in control as much as possible. But things like attachments are systemic and are not really under your control by default, so they are declared in the package and do not go by default. Also, standard naming conventions can be used by packages knowing that such a group definitely exists.

tabuna avatar Aug 24 '22 19:08 tabuna

Unless you're not using attachments, in which case it's a permission you don't really want clogging up the UI

Just being able to hide it would be enough, tbh.

BenWoodford avatar Aug 28 '22 11:08 BenWoodford

If it's just an aesthetic issue, then you can remove it at the singleton level, like so:

Dashbord::removePermission('key')

Or add to exceptions in the display layer

tabuna avatar Oct 09 '22 19:10 tabuna