1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00
appwrite/public/sdk-project/permission.ts

23 lines
472 B
TypeScript
Raw Normal View History

2022-09-20 20:54:38 +12:00
export class Permission {
static read = (role: string): string => {
return `read("${role}")`
}
static write = (role: string): string => {
return `write("${role}")`
}
static create = (role: string): string => {
return `create("${role}")`
}
static update = (role: string): string => {
return `update("${role}")`
}
static delete = (role: string): string => {
return `delete("${role}")`
}
}