Skip to content

Commit 471c0f8

Browse files
committed
changed error on authentication
1 parent 045b880 commit 471c0f8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/web/services/projects/view.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,8 @@ pub async fn project(
3636

3737
let can_edit = authorization.can_edit();
3838

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-
})
39+
if !authorization.can_view() { // currently not implemented (or needed)
40+
return Err(TelescopeError::NotAuthenticated)
4541
}
4642

4743
let mut template = Template::new(TEMPLATE_PATH);

0 commit comments

Comments
 (0)