We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 045b880 commit 471c0f8Copy full SHA for 471c0f8
src/web/services/projects/view.rs
@@ -36,12 +36,8 @@ pub async fn project(
36
37
let can_edit = authorization.can_edit();
38
39
- if !authorization.can_view() {
40
- return Err(TelescopeError::BadRequest {
41
- header: "Project Not Visible".into(),
42
- message: "You do not have permission to view this project".into(),
43
- show_status_code: false,
44
- })
+ if !authorization.can_view() { // currently not implemented (or needed)
+ return Err(TelescopeError::NotAuthenticated)
45
}
46
47
let mut template = Template::new(TEMPLATE_PATH);
0 commit comments