gitit icon indicating copy to clipboard operation
gitit copied to clipboard

Feature/private pages

Open Jassob opened this issue 8 years ago • 7 comments

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!

Jassob avatar Oct 21 '16 20:10 Jassob

Oops, this is not working correctly

Jassob avatar Oct 21 '16 22:10 Jassob

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..)

Jassob avatar Oct 21 '16 23:10 Jassob

Can you say more about what "private pages" are? Could it be documented in the manual?

jgm avatar Oct 25 '16 18:10 jgm

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. This is what private pages aims to enable. I added a field in the config in which one can specify with regex which pages will be private, i.e that only logged in members can view the pages (otherwise they will be redirected to the login page).

If by manual you mean the readme I could of course write some documentation there as well! I did not think about it before.

Jassob avatar Oct 27 '16 09:10 Jassob

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.

fdagnat avatar Jul 03 '19 12:07 fdagnat

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.

Jassob avatar Jul 03 '19 19:07 Jassob

I'm glad to hear that you find the patch helpful! Feel free to write the missing documentation if you want, you probably know the existing documentation and the added feature better than I do anyway :smile:

Jassob avatar Jul 03 '19 19:07 Jassob