merge upstream
All checks were successful
mnemo-build-and-publish / gractwo-mnemo-build (push) Successful in 40s
All checks were successful
mnemo-build-and-publish / gractwo-mnemo-build (push) Successful in 40s
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::{
|
|||||||
database::{self},
|
database::{self},
|
||||||
error::CompositeError,
|
error::CompositeError,
|
||||||
logs::LogEntry,
|
logs::LogEntry,
|
||||||
users::{User, auth::UserAuthenticate, permissions::Permission},
|
users::{User, auth::UserAuthenticate},
|
||||||
web::{components::nav::nav, icons, pages::base},
|
web::{components::nav::nav, icons, pages::base},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ pub async fn page(req: Request) -> Result<Response, CompositeError> {
|
|||||||
html!(
|
html!(
|
||||||
(nav(Some(&u), req.uri().path()))
|
(nav(Some(&u), req.uri().path()))
|
||||||
|
|
||||||
@if let Ok(true) = u.has_permission(&tx, Permission::BrowseServerLogs) {
|
@if true {//let Ok(true) = u.has_permission(&tx, Permission::BrowseServerLogs) {
|
||||||
div class="max-w-4xl mx-auto px-2" {
|
div class="max-w-4xl mx-auto px-2" {
|
||||||
div class="my-4" {
|
div class="my-4" {
|
||||||
p class="flex items-center gap-2" {
|
p class="flex items-center gap-2" {
|
||||||
|
|||||||
Reference in New Issue
Block a user