File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,27 @@ pub enum Permission {
212
212
SieveRenameScript ,
213
213
SieveCheckScript ,
214
214
SieveHaveSpace ,
215
+
216
+ // API keys
217
+ ApiKeyList ,
218
+ ApiKeyGet ,
219
+ ApiKeyCreate ,
220
+ ApiKeyUpdate ,
221
+ ApiKeyDelete ,
222
+
223
+ // OAuth clients
224
+ OauthClientList ,
225
+ OauthClientGet ,
226
+ OauthClientCreate ,
227
+ OauthClientUpdate ,
228
+ OauthClientDelete ,
229
+
230
+ // OAuth client registration
231
+ OauthClientRegistration ,
232
+ OauthClientOverride ,
233
+
234
+ #[ serde( other) ]
235
+ Unknown ,
215
236
}
216
237
217
238
impl AccessToken {
Original file line number Diff line number Diff line change @@ -163,6 +163,12 @@ pub fn PrincipalEdit() -> impl IntoView {
163
163
"user" . to_string( ) ,
164
164
] ) ;
165
165
}
166
+ PrincipalType :: Group => {
167
+ principal. enabled_permissions = PrincipalValue :: StringList ( vec ! [
168
+ "email-send" . to_string( ) ,
169
+ "email-receive" . to_string( ) ,
170
+ ] ) ;
171
+ }
166
172
_ => { }
167
173
}
168
174
@@ -377,6 +383,7 @@ pub fn PrincipalEdit() -> impl IntoView {
377
383
matches!(
378
384
typ,
379
385
PrincipalType :: Individual
386
+ | PrincipalType :: Group
380
387
| PrincipalType :: Role
381
388
| PrincipalType :: Tenant
382
389
)
@@ -752,6 +759,7 @@ pub fn PrincipalEdit() -> impl IntoView {
752
759
!matches!(
753
760
selected_type. get( ) ,
754
761
PrincipalType :: Individual
762
+ | PrincipalType :: Group
755
763
| PrincipalType :: Tenant
756
764
| PrincipalType :: Role
757
765
)
@@ -778,6 +786,7 @@ pub fn PrincipalEdit() -> impl IntoView {
778
786
!matches!(
779
787
selected_type. get( ) ,
780
788
PrincipalType :: Individual
789
+ | PrincipalType :: Group
781
790
| PrincipalType :: Role
782
791
| PrincipalType :: Tenant
783
792
)
@@ -796,6 +805,7 @@ pub fn PrincipalEdit() -> impl IntoView {
796
805
!matches!(
797
806
selected_type. get( ) ,
798
807
PrincipalType :: Individual
808
+ | PrincipalType :: Group
799
809
| PrincipalType :: Role
800
810
| PrincipalType :: Tenant
801
811
)
You can’t perform that action at this time.
0 commit comments