This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

klynch8462
klynch8462

I've been checking out October and think it would be a great platform to re-develop our website. I've just hit on one thing, as far as I can tell, only super-users have access to the media manager. Is there currently any way to grant access to other roles without giving them access to the whole site?

kondorekk8428
kondorekk8428

Hi i've got already the same problem.

With some little change you can manage the media permissions add organize the access to them via backend.

But, I don't like it, because this changes in serviceProvider class of cms modul, so when this part in the future will be update all the changes goes wrong. See the code below.

Maybe someone has some better idea to manage that. Maybe there is some way to extend this serviceProvider class?

This are my changes: Row 139

'media' => [
                    'label'       => 'cms::lang.media.menu_label',
                    'icon'        => 'icon-folder',
                    'url'         => Backend::url('cms/media'),
                    'permissions' => ['cms.manage_media'],
                    'order'       => 20
                ]

and in registerBackendPermissions() add a new role

'cms.manage_media' => [
                    'label' => 'cms::lang.permissions.manage_media',
                    'tab' => 'cms::lang.permissions.name',
                    'order' => 100
                ],

Notice that cms::lang.permissions.manage_media should be properly named in the lang.php file

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.