added lessons to standard permissions

This commit is contained in:
Denys Konovalov 2021-11-03 16:50:07 +01:00
parent 3cca060844
commit 7bd8063a42

@ -101,8 +101,11 @@ impl<'r> FromRequest<'r> for ApiKey<'r> {
validate_exp: false,
..Default::default()
};
let standard_permissions =
vec![String::from("/api/timetable"), String::from("/api/classes")];
let standard_permissions = vec![
String::from("/api/timetable"),
String::from("/api/classes"),
String::from("/api/lessons"),
];
let student_permissions: Vec<String> = vec![];
let teacher_permissions: Vec<String> = vec![];
let token = decode::<Claims>(