mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
refs #769, use role bulk to decide if user can directly write models
* renamed role functions * renamed buttons * some formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3a7c9626d3
commit
7446ffcb80
@@ -91,7 +91,7 @@ namespace BlackGui
|
||||
void CModelMappingForm::ps_userChanged()
|
||||
{
|
||||
const CAuthenticatedUser user(this->getSwiftDbUser());
|
||||
if (user.isAdmin())
|
||||
if (user.hasAdminRole())
|
||||
{
|
||||
ui->selector_ModelMode->setValue(CAircraftModel::Include);
|
||||
ui->selector_ModelMode->setReadOnly(false);
|
||||
|
||||
Reference in New Issue
Block a user