added lessons to standard permissions
This commit is contained in:
parent
3cca060844
commit
7bd8063a42
@ -101,8 +101,11 @@ impl<'r> FromRequest<'r> for ApiKey<'r> {
|
|||||||
validate_exp: false,
|
validate_exp: false,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let standard_permissions =
|
let standard_permissions = vec![
|
||||||
vec![String::from("/api/timetable"), String::from("/api/classes")];
|
String::from("/api/timetable"),
|
||||||
|
String::from("/api/classes"),
|
||||||
|
String::from("/api/lessons"),
|
||||||
|
];
|
||||||
let student_permissions: Vec<String> = vec![];
|
let student_permissions: Vec<String> = vec![];
|
||||||
let teacher_permissions: Vec<String> = vec![];
|
let teacher_permissions: Vec<String> = vec![];
|
||||||
let token = decode::<Claims>(
|
let token = decode::<Claims>(
|
||||||
|
Reference in New Issue
Block a user