Foros de discusión

Document Media Library: Find on DB role and permission of folder

thumbnail
Luigi Candita, modificado hace 11 años.

Document Media Library: Find on DB role and permission of folder

Junior Member Mensajes: 38 Fecha de incorporación: 4/05/09 Mensajes recientes
Hi

I uploaded by code, many documents in DL. By the code I've applied logic to set specific role and permission. Now I need a fast way (query on Demoticon to find which role and permission are on my DLFolders.

How can do it?

Thanks!
thumbnail
Subhash Pavuskar, modificado hace 11 años.

RE: Document Media Library: Find on DB role and permission of folder

Regular Member Mensajes: 234 Fecha de incorporación: 13/03/12 Mensajes recientes
Hi Luigi Candita,

Try this in your jsp file add the below code to check the permission of signed in user to display folders


boolean showfolder = DLFolderPermission.contains(permissionChecker, curFolder, ActionKeys.VIEW);

if(showfolder == true)
{
	* then display the folder */
	<a href="<%= folderURL %>">&lt;%= curFolder.getName() %&gt;</a>
	---------------------------------------
	---------------------------------------
}



Pls have a look Click Here
thumbnail
Luigi Candita, modificado hace 11 años.

RE: Document Media Library: Find on DB role and permission of folder

Junior Member Mensajes: 38 Fecha de incorporación: 4/05/09 Mensajes recientes
Subhash Pavuskar:
Hi Luigi Candita,

Try this in your jsp file add the below code to check the permission of signed in user to display folders


boolean showfolder = DLFolderPermission.contains(permissionChecker, curFolder, ActionKeys.VIEW);

if(showfolder == true)
{
	* then display the folder */
	<a href="<%= folderURL %>">&lt;%= curFolder.getName() %&gt;</a>
	---------------------------------------
	---------------------------------------
}



Pls have a look Click Here


I think that is no good for me.. this is an old version... I have 6.0.1