moin_config.py에서 아래 항목을 찾아서(없다면 새로 만들면 됩니다) 고쳐줍니다.
edit_requires_login=1
access_requires_login=0
root_name=("Khakii",)
excluded_actions_for_general_users=('edit','rename','saverename','savepage',\
'DeletePage','CleanHistories','DeleteUploadedFile',\
'UploadFile')
를 추가합니다. root_name에는 허용할 아이디 목록이 들어갑니다. ""으로 아이디를 둘러싸야하고, , 으로 구분해야 합니다.
만약 현재 사용 중인 모인모인이 excluded_actions_for_general_users를 지원하지 않는다면(노스모크 모인모인 최신 버젼에서 지원하는 걸로 기억하는데 확인은 안했습니다.) 다음 파일들을 수정하세요.
#wikiaction.py에서 def getHandler를 찾은 다음 함수가 시작하는 맨 윗줄에 아래 내용을 추가
if user.current.name not in config.root_name and action in config.excluded_actions_for_general_users:
return None
#action/__init__.py에서 맨 마지막 줄에 아래 내용을 추가
if user.current.name not in config.root_name:
for action in config.excluded_actions_for_general_users:
try:
extension_actions.remove(action)
except ValueError:
pass
이 때, user.current.name을 사용하는 파일에는 맨 위에 from MoinMoin import user가 있어야 합니다.
그리고 소스를 수정할 때는 파이썬 특유의 들여쓰기를 주의해야 합니다.