I want to create a new user in Cockpit so that my client can update his site himself. Of course, I want my client to have limited access to Cockpit’s features.
So I downloaded and installed this plugin : Groups Management UI Addon for Cockpit, which works perfectly… except for two things :
Indeed, I want to block the Assets module (because Cockpit, via this module, stores files both on the server in folders and subfolders (e.g. : ./year/month/day/filename.jpg)… but in the backend, files can be ordered only in virtual folders and subfolders. The structure created in the backend (ex: ./project-1/portraits/filename.jpg) will not be taken over on the server and the file will be stored in the root of the storage folder (ex: ./storage/uploads/filename.jpg instead of ./storage/uploads/project-1/portraits/filename.jpg) and I don’t like this)… but this was not provided in this plugin. I looked into the plugin’s source code, and even though I’m used to big frameworks (Symfony), I found it quite complicated to understand how it works internally.
I simply added this in the plugin file : cockpit_GROUPS/Groups/views/group.php (based on this source code) :
<div class="uk-margin-small-top"> <field-boolean bind="group.cockpit.assets" label="@lang('Assets')"></field-boolean> </div>
But it doesn’t work
Another problem, with this plugin it’s normally possible to block or not the Finder module and make changes to it (like specifying a default storage folder). The big problem is that when I log in with my client’s user account and try to use the Finder module… I get an error message “An error has occurred”. I don’t know what the problem is.
Do you have any ideas on how to solve these problems ?
Thanks in advance !