diff options
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/db/changeLog-1.8.xml | 7 | ||||
-rw-r--r-- | src/main/resources/templates/tags/navbar.html | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/main/resources/db/changeLog-1.8.xml b/src/main/resources/db/changeLog-1.8.xml index 2359001..05948b0 100644 --- a/src/main/resources/db/changeLog-1.8.xml +++ b/src/main/resources/db/changeLog-1.8.xml @@ -55,4 +55,11 @@ </createIndex> </changeSet> + <changeSet id="1.8-4" author="mulk"> + <sql> + ALTER TABLE benki.role_tags DROP CONSTRAINT role_tags_tag_check; + ALTER TABLE benki.role_tags ADD CONSTRAINT role_tags_tag_check CHECK (tag = ANY(ARRAY['admin', 'everyone', 'world', 'editor'])); + </sql> + </changeSet> + </databaseChangeLog> diff --git a/src/main/resources/templates/tags/navbar.html b/src/main/resources/templates/tags/navbar.html index 17a25dd..750d3e1 100644 --- a/src/main/resources/templates/tags/navbar.html +++ b/src/main/resources/templates/tags/navbar.html @@ -10,7 +10,7 @@ </ol> </li> - {#if inject:LoginStatus.loggedIn} + {#if inject:LoginStatus.isEditor} <li class='{#if siteSection == "Wiki"}this-page{/}' data-site-section="Wiki"><a href="/wiki/Home">Wiki</a></li> {/if} |