feat: implement new permissions hierarchy

This commit is contained in:
Paul Makles
2022-02-23 13:30:01 +00:00
parent 71c01e0817
commit 23ec914033
6 changed files with 46 additions and 55 deletions

View File

@@ -27,7 +27,6 @@ pub async fn req(db: &Db, user: User, target: Ref, data: Json<Data>) -> Result<V
let role = Role {
name: data.name,
permissions: (0_i32, 0_i32),
..Default::default()
};