Skip to content

Commit 2371e8e

Browse files
Merge pull request #9 from RedTurtle/permissions
site admin access to control panel
2 parents 1a03e34 + fd69e44 commit 2371e8e

File tree

17 files changed

+64
-20
lines changed

17 files changed

+64
-20
lines changed

.github/workflows/black.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: [3.8]
9+
python-version: [3.11]
1010

1111
steps:
1212
# git checkout
@@ -19,7 +19,7 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020

2121
# python cache
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v3
2323
with:
2424
path: ~/.cache/pip
2525
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: [3.8]
9+
python-version: [3.11]
1010

1111
steps:
1212
# git checkout
@@ -19,7 +19,7 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020

2121
# python cache
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v3
2323
with:
2424
path: ~/.cache/pip
2525
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

.github/workflows/pyroma.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: [3.8]
9+
python-version: [3.11]
1010

1111
steps:
1212
# git checkout
@@ -19,7 +19,7 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020

2121
# python cache
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v3
2323
with:
2424
path: ~/.cache/pip
2525
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
max-parallel: 4
1313
matrix:
14-
python: ["3.8", "3.9", "3.10", "3.11"]
14+
python: ["3.9", "3.10", "3.11"]
1515
plone: ["60"]
1616
# exclude:
1717
# - python: "3.10"

.github/workflows/zpretty.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: [3.8]
9+
python-version: [3.11]
1010

1111
steps:
1212
# git checkout
@@ -19,7 +19,7 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020

2121
# python cache
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v3
2323
with:
2424
path: ~/.cache/pip
2525
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

CHANGES.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Changelog
22
=========
33

4-
1.3.5 (unreleased)
4+
2.0.0 (unreleased)
55
------------------
66

7-
- Nothing changed yet.
7+
- Update permission settings to allow site administrators to access the control panel
8+
[thesaintsimon]
89

910

1011
1.3.4 (2024-12-12)

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42"]
3+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
setup(
1818
name="redturtle.voltoplugin.editablefooter",
19-
version="1.3.5.dev0",
19+
version="2.0.0.dev0",
2020
description="Add-on for Volto to manage four-columns footer",
2121
long_description=long_description,
2222
# Get more from https://pypi.org/classifiers/

src/redturtle/voltoplugin/editablefooter/configure.zcml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
-->
1515
<!--<includeDependencies package="." />-->
1616

17+
<include file="permissions.zcml" />
18+
1719
<include package=".browser" />
1820
<include package=".restapi" />
21+
<include package=".upgrades" />
1922

20-
<include file="permissions.zcml" />
2123

2224
<genericsetup:registerProfile
2325
name="default"

src/redturtle/voltoplugin/editablefooter/permissions.zcml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
>
66

77
<configure zcml:condition="installed AccessControl.security">
8-
<!-- -*- extra stuff goes here -*- -->
9-
10-
8+
<permission
9+
id="redturtle.voltoplugin.editablefooter.ManageSettings"
10+
title="redturtle.voltoplugin.editablefooter: ManageSettings"
11+
/>
1112
</configure>
1213

1314
</configure>

0 commit comments

Comments
 (0)