Skip to content

Commit fe8ee14

Browse files
authored
Admin Viewer should not be able to do this (#68)
1 parent d02e0f6 commit fe8ee14

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

go/metalstack/admin/v2/size.pb.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/permissions/servicepermissions.go

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/metalstack/admin/v2/size.proto

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ service SizeService {
1212
// Create a size
1313
rpc Create(SizeServiceCreateRequest) returns (SizeServiceCreateResponse) {
1414
option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR;
15-
option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_VIEWER;
1615
}
1716
// Update a size
1817
rpc Update(SizeServiceUpdateRequest) returns (SizeServiceUpdateResponse) {
1918
option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR;
20-
option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_VIEWER;
2119
}
2220
// Delete a size
2321
rpc Delete(SizeServiceDeleteRequest) returns (SizeServiceDeleteResponse) {
2422
option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR;
25-
option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_VIEWER;
2623
}
2724
}
2825

python/metalstack/admin/v2/size_pb2.py

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)