Skip to content
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

Add a choice whether authorized profils see the drafts or the approved versions #163

Open
ochurlaud opened this issue Feb 7, 2022 · 4 comments

Comments

@ochurlaud
Copy link

I am using the wiki as an operational tool.

Even if I'm an authorized editor, whenever I read the wiki, I want to see the approved pages by defaults, to be sure not to make any mistake. This should be a onoff choice in the configuration.

Further feature would be to choose on the wiki at runtime whether I want to see only approved pages or latest (draft) pages, with the default defined in the configuration.

@mtkirchner
Copy link

I agree and would like to see something like this.
But the publish-plugin is rather old and complex. A move to aprove is recommended.
So it might be easier to fund this function on the approve plugin.

@ochurlaud
Copy link
Author

My issue is that approve uses a database, and I'm trying to have everything in git or a basic Doku install. I'll check both plug-ins and try to provide a PR in one or the other one to fulfill my need.

@ochurlaud
Copy link
Author

Can be done by updating this one:

function isHidden($id = null) {
or this one:
function isHiddenForUser($id = null) {

@NeullerAlves
Copy link

Can be done by updating this one:

function isHidden($id = null) {

or this one:

function isHiddenForUser($id = null) {

@ochurlaud
What changes have you made to these functions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants