2023-08-25 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the 'RDSvc::remove()' method that failed to remove
	records from the 'USER_SERVICE_PERMS' table.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-08-25 14:44:56 -04:00
parent efad818cb7
commit c663080fdd
2 changed files with 8 additions and 0 deletions

View File

@@ -1668,6 +1668,11 @@ void RDSvc::remove(const QString &name)
q=new RDSqlQuery(sql);
delete q;
sql=QString("delete from `USER_SERVICE_PERMS` where ")+
"`SERVICE_NAME`='"+RDEscapeString(name)+"'";
q=new RDSqlQuery(sql);
delete q;
sql=QString("update `RDAIRPLAY` set ")+
"`DEFAULT_SERVICE`='' where "+
"`DEFAULT_SERVICE`='"+RDEscapeString(name)+"'";