Fix SU RSM UAP SQL query

This commit is contained in:
kaetemi 2014-09-08 05:28:09 +02:00
parent a3ca3426c9
commit 576a50ae24

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))
{