Issues (TODO) moved to issuetracker

This commit is contained in:
Dirk Alders 2024-10-08 15:00:14 +02:00
父節點 4c23eb77f3
當前提交 2164047878
共有 5 個檔案被更改,包括 7 行新增11 行删除

查看文件

@ -1,5 +1,3 @@
# TODO: Implement access control for pages
def read_page(request, rel_path):
return "private" not in rel_path or write_page(request, rel_path)
@ -9,10 +7,10 @@ def write_page(request, rel_path):
def read_attachment(request, rel_path):
# TODO: /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
# /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
return True
def modify_attachment(request, rel_path):
# TODO: /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
# /!\ rel_path is the filsystem rel_path - caused by the flat folder structure /!\
return request.user.is_authenticated and request.user.username in ['root', 'dirk']

查看文件

@ -1,8 +1,5 @@
from django.conf import settings
# TODO: PRIO: Add wildcards for subpages filter
# TODO: Add whoosh and search
import fstools
from pages import messages, url_page
import mycreole

查看文件

@ -21,9 +21,6 @@ except ImportError:
ROOT_LOGGER_NAME = 'root'
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
# TODO: /!\ Deactivate self registration
# TODO: /!\ Remove config and add config_example with data from mm_tmux /!\
def root(request):
return HttpResponseRedirect(url_page(request, config.STARTPAGE))

查看文件

@ -24,14 +24,18 @@ import pages.views
urlpatterns = [
path('admin/', admin.site.urls),
#
# page
path('', pages.views.root, name='page-root'),
path('page/', pages.views.root, name='page-root'),
path('page/<path:rel_path>', pages.views.page, name='page-page'),
path('pageedit/<path:rel_path>/', pages.views.edit, name='page-edit'),
path('helpview/', pages.views.helpview, name='page-helpview'),
path('helpview/<str:page>', pages.views.helpview, name='page-helpview'),
# theme
path('search/', pages.views.search, name='search'),
# mycreole
path('mycreole/', include('mycreole.urls')),
# users
path('users/', include('users.urls')),
]

2
users

@ -1 +1 @@
Subproject commit 57852e6ec8867543fbcd9915ae5b6d092aafe339
Subproject commit 6b55e81816ace1583051c8c62298c8a7281e2fcb