Disable Tray by Role?

If have a Role (eg DocAdmin) for users to access the webtop and upload/manage only documents. Is there an easy way to switch off the Tray on the front end for just users in that role?

Is the Tray bound by the permission to access the Webtop?

Is it perhaps a case of creating a new permission (eg viewTray) and then in _serverSpecificRequestScope.cfm:

    <cfif NOT application.security.checkPermission("viewTray")>
    request.bHideContextMenu = true
    </cfif>

Cheers
Phil

Yep, that worked.
and added this into the _serverSpecificRequestScope.cfm :

<cfif application.security.checkPermission("viewTray")>
<cfset request.bHideContextMenu = false>
<cfelse>
<cfset request.bHideContextMenu = true>
</cfif>


2 Likes

Yep that’s it, an existing permission or a custom permission is the only way to do it for now. Nice one :smile:

I think in FC8 we’ll add a permission for the tray and some more configurability on the options that are available to users in the tray as well.

1 Like