Merge branch 'feature/authority-fix-4979' into next

Fixes #4979
This commit is contained in:
Gunnar Beutner 2013-10-30 15:59:41 +01:00
commit cf55fe96e4
1 changed files with 6 additions and 1 deletions

View File

@ -79,7 +79,12 @@ void DynamicObject::SetAuthority(const String& type, bool value)
bool DynamicObject::HasAuthority(const String& type) const
{
return GetAuthorityInfo()->Get(type);
Dictionary::Ptr authorityInfo = GetAuthorityInfo();
if (!authorityInfo->Contains(type))
return true;
return authorityInfo->Get(type);
}
void DynamicObject::SetPrivileges(const String& instance, int privs)