mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
public commit
This commit is contained in:
11
app/src/core/security/Permission.ts
Normal file
11
app/src/core/security/Permission.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export class Permission<Name extends string = string> {
|
||||
constructor(public name: Name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
return {
|
||||
name: this.name
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user