diff --git a/cache/timer.yaml b/cache/timer.yaml index 1b7bf36..d7a098c 100644 --- a/cache/timer.yaml +++ b/cache/timer.yaml @@ -1,2 +1,2 @@ licenseupdate: 1751827655 -refreshnavi: 1752315754 +refreshnavi: 1752319250 diff --git a/content/01-publish-status/index.yaml b/content/01-publish-status/index.yaml index 2e9f9e0..b2cce0b 100644 --- a/content/01-publish-status/index.yaml +++ b/content/01-publish-status/index.yaml @@ -4,9 +4,9 @@ meta: description: 'In Typemill you can save drafts, publish pages, unpublish pages, and delete pages with a sticky publish panel at the bottom of each page. For published pages,' owner: typemill author: '' - modified: '2024-03-19' + modified: '2025-03-16' created: '2024-03-19' time: 18-40-10 - contains: pages hide: false noindex: false + contains: pages diff --git a/system/typemill/author/js/vue-contentnavi.js b/system/typemill/author/js/vue-contentnavi.js index 94956ac..633a507 100644 --- a/system/typemill/author/js/vue-contentnavi.js +++ b/system/typemill/author/js/vue-contentnavi.js @@ -17,11 +17,12 @@ const navigation = Vue.createApp({
- + `, data: function () { return { + pageaccess: false, navigation: data.navigation, home: data.home, backup: false, @@ -31,6 +32,10 @@ const navigation = Vue.createApp({ } }, mounted: function(){ + if(data.settings.pageaccess) + { + this.pageaccess = true; + } var expanded = localStorage.getItem('expanded'); if(expanded !== null) { @@ -167,6 +172,7 @@ navigation.component('navilevel',{ id: parentId ? parentId : false }" :expanded="expanded" + :pageaccess="pageaccess" > `, props: { + pageaccess: { + type: Boolean, + required: false, + default: false + }, navigation: { type: Array, required: true @@ -359,6 +378,17 @@ navigation.component('navilevel',{ return false; */ }, + isRestricted(element) + { + if(this.pageaccess) + { + if(element.allowedrole || element.alloweduser) + { + return true; + } + } + return false; + }, onStart(evt) { eventBus.$emit('backupNavigation'); diff --git a/system/typemill/author/partials/symbols.twig b/system/typemill/author/partials/symbols.twig index 37aec9a..7be8d2c 100644 --- a/system/typemill/author/partials/symbols.twig +++ b/system/typemill/author/partials/symbols.twig @@ -9,6 +9,10 @@ {{ translate('ACCOUNT') }} + + {{ translate('BLOCKED') }} + + {{ translate('SYSTEM') }}