Skip to content
Snippets Groups Projects
Verified Commit 134de5fa authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'f-acm' into f-acm-docchanges

parents 5ed9e98d 2f3e4ad1
Branches
Tags
3 merge requests!8Release 0.2,!7F acm,!6F acm docchanges
Pipeline #18682 passed with warnings
...@@ -719,6 +719,10 @@ message EntityACL { ...@@ -719,6 +719,10 @@ message EntityACL {
string id = 1; string id = 1;
// The rules which make up the ACL // The rules which make up the ACL
repeated EntityPermissionRule rules = 2; repeated EntityPermissionRule rules = 2;
// relevant permissions of the current session, e.g. if the current user is
// allowed to update the ACL. This is read-only and will be ignored by the
// server.
repeated EntityPermission permissions = 3;
} }
// Permission rules for Entity ACL // Permission rules for Entity ACL
...@@ -731,6 +735,16 @@ message EntityPermissionRule { ...@@ -731,6 +735,16 @@ message EntityPermissionRule {
bool grant = 3; bool grant = 3;
// permissions // permissions
repeated EntityPermission permissions = 4; repeated EntityPermission permissions = 4;
// capabilities
repeated EntityPermissionRuleCapability capabilities = 5;
}
// What (given enough permissions) can be done with an EntityPermissionRule. E.g. globel entity permission rules, which are to be specified in a configuration file cannot be deleted, thus they are missing the ENTITY_PERMISSION_RULE_CAPABILITY_DELETE capability.
enum EntityPermissionRuleCapability {
// Unspecified capability.
ENTITY_PERMISSION_RULE_CAPABILITY_UNSPECIFIED = 0;
// This permission rule can be deleted/removed from the ACL
ENTITY_PERMISSION_RULE_CAPABILITY_DELETE = 1;
} }
// TODO replace by enum // TODO replace by enum
......
...@@ -65,6 +65,8 @@ message GetSessionInfoResponse { ...@@ -65,6 +65,8 @@ message GetSessionInfoResponse {
repeated string roles = 3; repeated string roles = 3;
// Seconds until this sessions expires (approximately). // Seconds until this sessions expires (approximately).
int64 expires = 4; int64 expires = 4;
// The permissions of the user who owns this sessions
repeated string permissions = 5;
} }
// A service which provides general information about the server. // A service which provides general information about the server.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment