Implement basic settings to only allow some users to edit the wiki.#23
Implement basic settings to only allow some users to edit the wiki.#23hazelybell wants to merge 4 commits intojgm:masterfrom
Conversation
isEditor instead of requireEditor
refactoring. Merge remote-tracking branch 'remotes/jgm/master' into configEditors Conflicts: Network/Gitit2.hs
|
Once again thank you for the PR and sorry for the long delay. However... :-( There are many possible use cases for a wiki with different requirements regarding authorization. Your use cases is one of these and surely a common one. I have another use case that I described in a message to the gitit-discuss group (point b, in "gitit2 as image gallery with git-annex"): So I'd strongly prefer a solution that allows for different authorization schemes instead of adding the first that comes by ad-hoc. I researched whether there are authorization libraries in Haskell as there are for e.g. Java (Spring Security) or any other more popular language. I also posted this question to stackoverflow, haskell-cafe, yesodweb and web-devel. - No result. So I think it's an urgent requirement for the whole haskell eco-system to come up with such a thing. |
This PR includes changes suggested by @freiric and the latest refactoring in jgm/master.