Fix SU RSM UAP SQL query

This commit is contained in:
kaetemi 2014-09-08 05:28:09 +02:00
parent af1b9ed495
commit bde283e8cb

View file

@ -648,7 +648,7 @@ namespace RSMGR
userAccessPriv.clear();
CSString query;
query << "SELECT AccessPrivilege FROM permission";
query << " WHERE UId = " << userId << " AND DomainId = " << DomainId;
query << " WHERE UId = " << userId << " AND DomainId = (SELECT domain_id FROM domain WHERE domain_name = '" << DomainName << "')";
if (!_NelDb.query(query))
{