From f6fe4500652b153443ebd947efb1557196f63dfc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 11 Aug 2015 14:21:04 +0200 Subject: whoami() returns WhoamiInfo --- src/main/thrift/bwlp.thrift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/thrift') diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 6f9c363..fb29e9f 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -72,6 +72,12 @@ struct UserInfo { 6: optional Role role, } +struct WhoamiInfo { + 1: UserInfo user, + 2: bool isSuperUser, + 3: bool canListImages, +} + struct Organization { 1: string organizationId, 2: string displayName, @@ -380,7 +386,7 @@ service SatelliteServer { throws (1:TAuthorizationException authError, 2:TInternalServerError serverError), // Query own user information (for validation or session resume) - UserInfo whoami(1: Token userToken) + WhoamiInfo whoami(1: Token userToken) throws (1:TAuthorizationException authError, 2:TInternalServerError serverError), void invalidateSession(1: Token userToken), -- cgit v1.2.3-55-g7522