Skip to content

Commit

Permalink
display sidebar and header only if user has view permission
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed May 24, 2024
1 parent acba061 commit 83d0e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cone/app/browser/templates/layout.pt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<!-- sidebar -->
<div id="sidebar_left"
tal:condition="config.sidebar_left"
tal:condition="config.sidebar_left and request.has_permission('view', model)"
class="d-flex flex-column flex-shrink-0 p-3 px-0 pb-5">

<div id="sidebar_collapse">
Expand Down Expand Up @@ -68,6 +68,7 @@

<!-- header -->
<nav id="header-main"
tal:condition="request.has_permission('view', model)"
class="position-relative p-0 navbar navbar-expand-lg navbar-light shadow-sm">

<div id="header-content"
Expand Down

0 comments on commit 83d0e1c

Please sign in to comment.