refs #502, added role support and user as data object (for distribution)

This commit is contained in:
Klaus Basan
2015-11-04 03:04:42 +01:00
committed by Mathew Sutcliffe
parent 23b310ac9b
commit 87a55edc04
5 changed files with 68 additions and 2 deletions

View File

@@ -25,6 +25,15 @@ namespace BlackMisc
return hasRole(role.getName());
}
bool CRoleList::hasAnyRole(const QStringList &roles) const
{
for (const QString &r : roles)
{
if (this->hasRole(r)) { return true; }
}
return false;
}
CRoleList::CRoleList(const CSequence<CRole> &other) :
CSequence<CRole>(other)
{ }