You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#116898 Wrong profile for File Browser

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by unipg on Monday, 14 October 2024 12:28 BST

unipg

Hi!

I'm using JCE Pro 2.9.81 on Joomla 5.1.4 and I'm trying to set a specific profile for a usergroup when using File Browser from JCE component menu.

I've prepared these profiles, in this order:

  1. a profile "P_A" restricted to component A and usergroup X, with root directory set to /files/folder_A
  2. a profile "P_B"restricted to component B and usergroup X, with root directory set to /files/folder_B
  3. a profile "P_DEFAULT" for all components and restricted to usergroup X, with root directory set to /files

When users of usergroup X use component A or B everything is ok. Inside components forms the file browser gets the right directory, respectively /files/folder_A and /files/folder_B.

But when they access File Browser from JCE component menu, they get the directory set for the first profile, /files/folder_A, instead of the one expected and set for the third profile: /files.

So, I've made some tests...

Disabling the first profile, users get the second directory: /files/folder_B.

Disabling first and second profile or reordering the profiles putting P_DEFAULT at the top, users get the right directory: /files. Of course, in this case they will get the wrong directory using component A and B.

So, I was wondering how can I assign a profile ONLY to users that access File Browser from JCE component menu or, at least, avoid that it takes profiles restricted to other components.

Many thanksssss!!! 😀

Ryan

Please export the profiles - https://www.joomlacontenteditor.net/support/documentation/profiles/profiles-export - then post them as a zip file attachment, so I can test them.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

unipg

Here you are! 😅

The destination directories are:

  • /files (for the third default profile)
  • /files/news (for the first profile A)
  • /files/eventi (for the second profile B)

Attachments

jce_editor_profile_2024_10_10.zip

Ryan

Please try JCE Pro 2.9.82 Beta 4 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

unipg

All seem to be working fine now 😀

I've also tested the last profile assigning to it just the com_jce component. Everything's ok 😄

Thanks!!Thanks!!Thanks!!