Jump to content

4.9.1.80 BlockedMediaFolders [string] in Policy is missing


Go to solution Solved by Luke,

Recommended Posts

Posted

Hi,

I'm trying to hide a specific media library for a user via the API. In version 4.8, I was able to do this by setting Policy['BlockedMediaFolders'] = ['the block lib name'], and it worked well. However, in version 4.9, this option seems to have been removed.

Now, I have to first retrieve all media folder GUIDs, remove the one I want to hide, and then set Policy['EnabledFolders'] to the remaining GUIDs. I also need to make sure Policy['EnableAllFolders'] = false. Additionally, when displaying libraries, I need to consider whether EnableAllFolders is set to true.

So my question is: was BlockedMediaFolders removed in version 4.9.1.80? And is my current approach the correct way to hide a media library for a user?

Thanks in advance!

  • Disagree 1
  • Solution
Posted
Quote

So my question is: was BlockedMediaFolders removed in version 4.9.1.80?

Yes. 4.8 didn't have it in the UI anymore either, although it may have still been checking it behind the scenes.

Quote

And is my current approach the correct way to hide a media library for a user?

Yes that sounds right.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...