chimeric / dokuwiki-plugin-wikicalendar

http://dokuwiki.org/plugin:wikicalendar
GNU General Public License v2.0
10 stars 8 forks source link

Edit button NOT disabled for read only users - clicking it throws error #18

Open snathan99 opened 11 years ago

snathan99 commented 11 years ago

This is a great plugin which gives me exactly what I need. However when a read-only user views the calendar, they still get the edit icon on the date for those dates that have events. Clicking it gives the error "Command disabled: source". Read-only user should not get the Edit Icon I would think.

Thanks again for the plugin.

snathan99 commented 11 years ago

Might have resolved it!

Edited line 305 in syntax.php to read AUTH_CREATE where it originally said AUTH_READ. Full line is:

if(auth_quickaclcheck($wp) >= AUTH_READ) { to if(auth_quickaclcheck($wp) >= AUTH_CREATE) {

Thanks!