mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T53, "bulkadd" role in UI/user
This commit is contained in:
committed by
Mathew Sutcliffe
parent
66e729b090
commit
6fc48ab160
@@ -477,7 +477,7 @@ namespace BlackGui
|
||||
}
|
||||
else if (user.canDirectlyWriteModels())
|
||||
{
|
||||
ui->pb_Publish->setText("Publish (direct)");
|
||||
ui->pb_Publish->setText("Publish (dir.)");
|
||||
ui->pb_Publish->setToolTip("Models directly released");
|
||||
ui->pb_Publish->setEnabled(true);
|
||||
}
|
||||
|
||||
@@ -112,9 +112,14 @@ namespace BlackMisc
|
||||
return this->hasRole("BULK");
|
||||
}
|
||||
|
||||
bool CAuthenticatedUser::hasBulkAddRole() const
|
||||
{
|
||||
return this->hasRole("BULKADD");
|
||||
}
|
||||
|
||||
bool CAuthenticatedUser::canDirectlyWriteModels() const
|
||||
{
|
||||
return this->hasBulkRole();
|
||||
return this->hasBulkRole() || this->hasBulkAddRole();
|
||||
}
|
||||
|
||||
CIcon CAuthenticatedUser::toIcon() const
|
||||
|
||||
@@ -137,6 +137,9 @@ namespace BlackMisc
|
||||
//! Has bulk role?
|
||||
bool hasBulkRole() const;
|
||||
|
||||
//! Has bulk add role?
|
||||
bool hasBulkAddRole() const;
|
||||
|
||||
//! Authenticated
|
||||
void setAuthenticated(bool authenticated) { m_authenticated = authenticated; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user