Hey Ben, I don't think I did end up writing something.

On Fri, Oct 10, 2014 at 7:27 PM, Ben Havilland <[email protected]> wrote:

> I know this is crazy old but I am faced with the same question in the
> current version on Mezzanine.  I am about to write the middleware Stephen
> suggested.  Did you already write something Josh? Thanks
>
> On Monday, January 24, 2011 1:54:33 AM UTC-8, Stephen McDonald wrote:
>>
>> Hey Josh,
>>
>> You could implement the access control very easily with some middleware -
>> just check the URL for the filebrowser prefix and you've access to the user
>> via request in the middleware as well.
>>
>> That doesn't solve the issue though of controlling whether the link to
>> filebrowser is shown in admin's navigation menu (the text appears as "Media
>> Library" i the actual menu). You can easily remove it by defining your own
>> menu structure with the setting ADMIN_MENU_ORDER but it's all or nothing at
>> this stage without the ability to have it display based on the current
>> user.
>>
>> The TinyMCE button that links to filebrowser is in the same boat - you
>> can define your own TinyMCE settings with the HTML_WIDGET_CLASS and remove
>> the filebrowser link but it's not going to be configurable per user.
>>
>> Hopefully the middleware approach will cover off what you need.
>>
>> Cheers,
>> Steve
>>
>>
>> On Sat, Jan 22, 2011 at 8:40 AM, Josh Cartmell <[email protected]>
>> wrote:
>>
>>> Hi I was wondering if there is a way to restrict access to
>>> filebrowser.  I.e. I would like to create a user that is_staff so they
>>> can log into the admin site but they cannot access the filebrowser.
>>> In my brief testing any user that can log into the admin can access
>>> filebrowser.  I don't see any assignable user permission for
>>> filebrowser.  If anyone knows a work around or how to implement this
>>> functionality it would be great.
>>>
>>> Thanks,
>>> Josh
>>
>>
>>
>>
>> --
>> Stephen McDonald
>> http://jupo.org
>>
>>   --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to