mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #502, added role support and user as data object (for distribution)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
23b310ac9b
commit
87a55edc04
@@ -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)
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user