2018-05-07 Fred Gleason <fredg@paravelsystems.com>

* Added a 'USERS.WEBGET_LOGIN_PRIV' field to the database.
	* Incremented the database version to 277.
	* Added 'RDUser::webgetLogin()' and 'RDUser::setWebgetLogin()'
	methods.
	* Added a 'Allow WebGet Login' control in the 'Production Rights'
	section of the 'User' dialog in rdadmin(1).
This commit is contained in:
Fred Gleason
2018-05-08 16:04:53 +00:00
parent 7e437154ad
commit 082a42dd39
17 changed files with 102 additions and 10 deletions

View File

@@ -265,6 +265,19 @@ void RDUser::setEditAudio(bool priv) const
}
bool RDUser::webgetLogin() const
{
return RDBool(RDGetSqlValue("USERS","LOGIN_NAME",user_name,
"WEBGET_LOGIN_PRIV").toString());
}
void RDUser::setWebgetLogin(bool priv) const
{
SetRow("WEBGET_LOGIN_PRIV",priv);
}
bool RDUser::createLog() const
{
return RDBool(RDGetSqlValue("USERS","LOGIN_NAME",user_name,