|
@@ -40,7 +40,7 @@ var NetworkAdminAllPermissionTemplate = models.UserRolePermissionTemplate{
|
|
var NetworkUserAllPermissionTemplate = models.UserRolePermissionTemplate{
|
|
var NetworkUserAllPermissionTemplate = models.UserRolePermissionTemplate{
|
|
ID: models.UserRoleID(fmt.Sprintf("global-%s", models.NetworkUser)),
|
|
ID: models.UserRoleID(fmt.Sprintf("global-%s", models.NetworkUser)),
|
|
Name: "Network Users",
|
|
Name: "Network Users",
|
|
- MetaData: "Can connect to nodes in your networks via Remote Access Client.",
|
|
|
|
|
|
+ MetaData: "Can connect to nodes in your networks via Netmaker Desktop App.",
|
|
Default: true,
|
|
Default: true,
|
|
FullAccess: false,
|
|
FullAccess: false,
|
|
NetworkID: models.AllNetworks,
|
|
NetworkID: models.AllNetworks,
|
|
@@ -131,7 +131,7 @@ func UserGroupsInit() {
|
|
models.UserRoleID(fmt.Sprintf("global-%s", models.NetworkUser)): {},
|
|
models.UserRoleID(fmt.Sprintf("global-%s", models.NetworkUser)): {},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- MetaData: "Provides read-only dashboard access to platform users and allows connection to network nodes via the Remote Access Client.",
|
|
|
|
|
|
+ MetaData: "Provides read-only dashboard access to platform users and allows connection to network nodes via the Netmaker Desktop App.",
|
|
}
|
|
}
|
|
d, _ := json.Marshal(NetworkGlobalAdminGroup)
|
|
d, _ := json.Marshal(NetworkGlobalAdminGroup)
|
|
database.Insert(NetworkGlobalAdminGroup.ID.String(), string(d), database.USER_GROUPS_TABLE_NAME)
|
|
database.Insert(NetworkGlobalAdminGroup.ID.String(), string(d), database.USER_GROUPS_TABLE_NAME)
|
|
@@ -156,7 +156,7 @@ func CreateDefaultNetworkRolesAndGroups(netID models.NetworkID) {
|
|
var NetworkUserPermissionTemplate = models.UserRolePermissionTemplate{
|
|
var NetworkUserPermissionTemplate = models.UserRolePermissionTemplate{
|
|
ID: models.UserRoleID(fmt.Sprintf("%s-%s", netID, models.NetworkUser)),
|
|
ID: models.UserRoleID(fmt.Sprintf("%s-%s", netID, models.NetworkUser)),
|
|
Name: fmt.Sprintf("%s User", netID),
|
|
Name: fmt.Sprintf("%s User", netID),
|
|
- MetaData: fmt.Sprintf("Can connect to nodes in your network `%s` via Remote Access Client.", netID),
|
|
|
|
|
|
+ MetaData: fmt.Sprintf("Can connect to nodes in your network `%s` via Netmaker Desktop App.", netID),
|
|
Default: true,
|
|
Default: true,
|
|
FullAccess: false,
|
|
FullAccess: false,
|
|
NetworkID: netID,
|
|
NetworkID: netID,
|
|
@@ -235,7 +235,7 @@ func CreateDefaultNetworkRolesAndGroups(netID models.NetworkID) {
|
|
models.UserRoleID(fmt.Sprintf("%s-%s", netID, models.NetworkUser)): {},
|
|
models.UserRoleID(fmt.Sprintf("%s-%s", netID, models.NetworkUser)): {},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- MetaData: fmt.Sprintf("Can connect to nodes in your network `%s` via Remote Access Client. Platform users will have read-only access to the the dashboard.", netID),
|
|
|
|
|
|
+ MetaData: fmt.Sprintf("Can connect to nodes in your network `%s` via Netmaker Desktop App. Platform users will have read-only access to the the dashboard.", netID),
|
|
}
|
|
}
|
|
d, _ = json.Marshal(NetworkAdminGroup)
|
|
d, _ = json.Marshal(NetworkAdminGroup)
|
|
database.Insert(NetworkAdminGroup.ID.String(), string(d), database.USER_GROUPS_TABLE_NAME)
|
|
database.Insert(NetworkAdminGroup.ID.String(), string(d), database.USER_GROUPS_TABLE_NAME)
|
|
@@ -1211,7 +1211,7 @@ func CreateDefaultUserPolicies(netID models.NetworkID) {
|
|
defaultUserAcl := models.Acl{
|
|
defaultUserAcl := models.Acl{
|
|
ID: fmt.Sprintf("%s.%s-grp", netID, models.NetworkAdmin),
|
|
ID: fmt.Sprintf("%s.%s-grp", netID, models.NetworkAdmin),
|
|
Name: "Network Admin",
|
|
Name: "Network Admin",
|
|
- MetaData: "This Policy allows all network admins to communicate with all remote access gateways",
|
|
|
|
|
|
+ MetaData: "This Policy allows all network admins to communicate with all gateways",
|
|
Default: true,
|
|
Default: true,
|
|
ServiceType: models.Any,
|
|
ServiceType: models.Any,
|
|
NetworkID: netID,
|
|
NetworkID: netID,
|
|
@@ -1244,7 +1244,7 @@ func CreateDefaultUserPolicies(netID models.NetworkID) {
|
|
defaultUserAcl := models.Acl{
|
|
defaultUserAcl := models.Acl{
|
|
ID: fmt.Sprintf("%s.%s-grp", netID, models.NetworkUser),
|
|
ID: fmt.Sprintf("%s.%s-grp", netID, models.NetworkUser),
|
|
Name: "Network User",
|
|
Name: "Network User",
|
|
- MetaData: "This Policy allows all network users to communicate with all remote access gateways",
|
|
|
|
|
|
+ MetaData: "This Policy allows all network users to communicate with all gateways",
|
|
Default: true,
|
|
Default: true,
|
|
ServiceType: models.Any,
|
|
ServiceType: models.Any,
|
|
NetworkID: netID,
|
|
NetworkID: netID,
|