mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02:00
apply a group's permissions to users who belong to the group
This commit is contained in:
parent
ba032ce0b4
commit
b1ad743721
1 changed files with 2 additions and 10 deletions
|
@ -25,15 +25,7 @@ class NodePermissions {
|
||||||
public:
|
public:
|
||||||
NodePermissions() { _id = QUuid::createUuid().toString(); }
|
NodePermissions() { _id = QUuid::createUuid().toString(); }
|
||||||
NodePermissions(const QString& name) { _id = name.toLower(); }
|
NodePermissions(const QString& name) { _id = name.toLower(); }
|
||||||
NodePermissions(QMap<QString, QVariant> perms) {
|
NodePermissions(QMap<QString, QVariant> perms);
|
||||||
_id = perms["permissions_id"].toString().toLower();
|
|
||||||
canConnectToDomain = perms["id_can_connect"].toBool();
|
|
||||||
canAdjustLocks = perms["id_can_adjust_locks"].toBool();
|
|
||||||
canRezPermanentEntities = perms["id_can_rez"].toBool();
|
|
||||||
canRezTemporaryEntities = perms["id_can_rez_tmp"].toBool();
|
|
||||||
canWriteToAssetServer = perms["id_can_write_to_asset_server"].toBool();
|
|
||||||
canConnectPastMaxCapacity = perms["id_can_connect_past_max_capacity"].toBool();
|
|
||||||
}
|
|
||||||
|
|
||||||
QString getID() const { return _id; }
|
QString getID() const { return _id; }
|
||||||
|
|
||||||
|
@ -41,7 +33,7 @@ public:
|
||||||
void setUserName(QString userName) { _userName = userName.toLower(); }
|
void setUserName(QString userName) { _userName = userName.toLower(); }
|
||||||
QString getUserName() { return _userName; }
|
QString getUserName() { return _userName; }
|
||||||
|
|
||||||
void setGroupID(QUuid groupID) { _groupID = groupID; _groupIDSet = true; }
|
void setGroupID(QUuid groupID) { _groupID = groupID; if (!groupID.isNull()) { _groupIDSet = true; } }
|
||||||
QUuid getGroupID() { return _groupID; }
|
QUuid getGroupID() { return _groupID; }
|
||||||
bool isGroup() { return _groupIDSet; }
|
bool isGroup() { return _groupIDSet; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue