-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/private pages #579
base: master
Are you sure you want to change the base?
Conversation
Added functions and types for handling private pages.
Added a handler predicate, unlessPrivatePage, that takes two handlers as arguments and runs the first if the requested page is not listed as a private page, otherwise it runs the fallback handler. Also wired up the predicate with the default gitit settings.
Oops, this is not working correctly |
Now it works more as it should. (Previous commit did not allow logged in users to view the private pages, somehow I did not test that part..) |
Can you say more about what "private pages" are? |
Oh, of course! In our organization we have some pages that are public and that everyone can see, but for some pages we want to only let logged in members view them. If by manual you mean the readme I could of course write some documentation there as well! |
May I ask, if there is any reason for not integrating this patch? I find it useful and use it. I may write some documentation if that is what is missing. |
I think it probably is because I never got around to write any documentation for it... Life happened and now our organization changed wiki-engine, so we're no longer using this patch ourselves. |
I'm glad to hear that you find the patch helpful! |
We are using Gitit at the Student Division for Computer Science and Engineering at Chalmers Uni.
We implemented private pages for our own wiki and thought that we should push it upstreams.
Feedback is appreciated!