feat: Allow viewers to be upgraded to editors on individual collections (#4023)
* Improve types * More types, fix default permission for viewers added to collection * fix change of default role for CollectionGroup * Restore policy * test * tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Context } from "koa";
|
||||
import { FileOperation, Team, User } from "./models";
|
||||
|
||||
export enum AuthenticationTypes {
|
||||
export enum AuthenticationType {
|
||||
API = "api",
|
||||
APP = "app",
|
||||
}
|
||||
@@ -10,7 +10,7 @@ export type ContextWithState = Context & {
|
||||
state: {
|
||||
user: User;
|
||||
token: string;
|
||||
authType: AuthenticationTypes;
|
||||
authType: AuthenticationType;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user