gkrid / dokuwiki-plugin-approve

GNU General Public License v2.0
4 stars 17 forks source link

Excluded namespaces - stuck at approved page #4

Closed ruud12 closed 6 years ago

ruud12 commented 6 years ago

If a page is approved at some point of time, and later on the namespace is added to the excluded namespaces, the page will only show the last approved version instead of the last edit.

In the function handle_viewer() a check should be added to always get the last draft if the namespace is excluded later on.

What I have done - as a simple fix/hack - is changed line 83 to if (auth_quickaclcheck($ID) > AUTH_READ || ($this->hlp->in_namespace($this->getConf('no_apr_namespaces'), $ID))) return;

instead of if (auth_quickaclcheck($ID) > AUTH_READ) return;