[opencms-dev] How check if user can write into folder

Ernesto De Santis ernesto.desantis at colaborativa.net
Tue Jan 11 20:26:36 CET 2005


Hello List

I have a problem with check if the current user can write in a folder. The
problem is when folders is unlocked.

m_cms instance of CmsObject

if folder not is locked
m_cms.accessWrite(folder) return *FALSE*

if folder is locked for the current user
m_cms.accessWrite(folder) return true

if folder is locked for another user
m_cms.accessWrite(folder) return false

But, the user can write in folder when folder is unlocked.
I think that this method is for write resources, and resources need be
locked to be modified. But how I can check if the user can write into
folder.

My system
OpenCms 5.0.1
MySql
Tomcat 4.1
Win2000

Thanks
Ernesto.




More information about the opencms-dev mailing list