mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #751, info if user can directly update models
* modified login component, give hints * user object has flag for direct write
This commit is contained in:
committed by
Roland Winklmeier
parent
03c642d88a
commit
ced9f5294e
@@ -101,6 +101,11 @@ namespace BlackMisc
|
||||
return this->hasRole("MAPPINGADMIN") || this->isAdmin();
|
||||
}
|
||||
|
||||
bool CAuthenticatedUser::canDirectlyWriteModels() const
|
||||
{
|
||||
return this->isAdmin() || this->isMappingAdmin();
|
||||
}
|
||||
|
||||
CIcon CAuthenticatedUser::toIcon() const
|
||||
{
|
||||
return CIconList::iconByIndex(CIcons::StandardIconUser16);
|
||||
|
||||
@@ -139,6 +139,9 @@ namespace BlackMisc
|
||||
//! Enabled
|
||||
bool isEnabled() const { return this->m_enabled; }
|
||||
|
||||
//! Entitled to directly update models
|
||||
bool canDirectlyWriteModels() const;
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::Icon::toIcon()
|
||||
BlackMisc::CIcon toIcon() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user