[opencms-dev] WebUser delete problem

Tomas tommaso.masi at tiscali.it
Thu Mar 2 18:23:49 CET 2006


I cannot delete a WebUser from my application code using the following
statements:

   CmsObject cms = OpenCms.initCmsObject((new
CmsDefaultUsers()).getUserGuest());
   CmsUser user = cms.readWebUser(username);

   cms.deleteWebUser(user.getId());

>From my analysis it seems that the CmsSecurityManager.checkOfflineProject()
function fails when it is called during the
CmsSecurityManager.deleteWebUser() function (called by
CmsObject.deleteWebUser() function).
If this is the corrrect behaviour, a WebUser can only deleted inside the
Offline project. But in this case how can let a registered user (implemented
by means of a WebUser) delete itself from my site?
Thank you

Tommaso Masi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060302/91126484/attachment.htm>


More information about the opencms-dev mailing list