main page
This commit is contained in:
22
node_modules/appwrite/src/permission.ts
generated
vendored
Normal file
22
node_modules/appwrite/src/permission.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
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}")`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user