|
@@ -1499,7 +1499,7 @@ bool CLdapSecManager::clearPermissionsCache(ISecUser& user)
|
|
|
{
|
|
|
if(m_permissionsCache->isCacheEnabled())
|
|
|
{
|
|
|
- if (!authenticate(&user))
|
|
|
+ if (!isEmptyString(user.getName()) && !isEmptyString(user.credentials().getPassword()) && !authenticate(&user))
|
|
|
{
|
|
|
PROGLOG("User %s not authorized to clear permissions cache", user.getName());
|
|
|
return false;
|