1
0
Fork 0
mirror of synced 2024-07-04 22:20:45 +12:00
appwrite/public/sdk-web/permission.ts

23 lines
472 B
TypeScript
Raw Normal View History

2022-09-20 20:32:05 +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}")`
}
}