Bugfix: fixed permission

This commit is contained in:
Keanu D?lle 2020-12-30 15:44:48 +01:00
parent 715a164a2b
commit 03c5148278

View File

@ -29,7 +29,7 @@ pub fn api_member_add_driving_license(
&settings,
&member,
caller.entity_id,
"modules.member_management.modules.member_management.profile.drive_permissions_licenses.edit".to_string(),
crate::permissions::modules::member_management::profile::drive_permissions_licenses::EDIT.to_string(),
) {
return Err(Json(ApiError::new(403, "Keine Berechtigung, Fahrberechtigungen zu ändern!".to_string()).to_wrapper()));
}
@ -54,7 +54,7 @@ pub fn api_member_add_driving_permission(
&settings,
&member,
caller.entity_id,
"modules.member_management.modules.member_management.profile.drive_permissions_licenses.edit".to_string(),
crate::permissions::modules::member_management::profile::drive_permissions_licenses::EDIT.to_string(),
) {
return Err(Json(ApiError::new(403, "Keine Berechtigung, Fahrberechtigungen zu ändern!".to_string()).to_wrapper()));
}
@ -79,7 +79,7 @@ pub fn api_member_remove_driving_license(
&settings,
&member,
caller.entity_id,
"modules.member_management.modules.member_management.profile.drive_permissions_licenses.edit".to_string(),
crate::permissions::modules::member_management::profile::drive_permissions_licenses::EDIT.to_string(),
) {
return Err(Json(ApiError::new(403, "Keine Berechtigung, Fahrberechtigungen zu ändern!".to_string()).to_wrapper()));
}