Fórum
Document Media Library: Find on DB role and permission of folder
Luigi Candita, modificado 11 Anos atrás.
Document Media Library: Find on DB role and permission of folder
Junior Member Postagens: 38 Data de Entrada: 04/05/09 Postagens Recentes
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 D to find which role and permission are on my DLFolders.
How can do it?
Thanks!
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 D to find which role and permission are on my DLFolders.
How can do it?
Thanks!
Subhash Pavuskar, modificado 11 Anos atrás.
RE: Document Media Library: Find on DB role and permission of folder
Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Hi Luigi Candita,
Try this in your jsp file add the below code to check the permission of signed in user to display folders
Pls have a look Click Here
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 %>"><%= curFolder.getName() %></a>
---------------------------------------
---------------------------------------
}
Pls have a look Click Here
Luigi Candita, modificado 11 Anos atrás.
RE: Document Media Library: Find on DB role and permission of folder
Junior Member Postagens: 38 Data de Entrada: 04/05/09 Postagens RecentesSubhash Pavuskar:
Hi Luigi Candita,
Try this in your jsp file add the below code to check the permission of signed in user to display foldersboolean showfolder = DLFolderPermission.contains(permissionChecker, curFolder, ActionKeys.VIEW); if(showfolder == true) { * then display the folder */ <a href="<%= folderURL %>"><%= curFolder.getName() %></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