Description

'Load' action should be disabled in 'More Actions:' if user has no 'write' permission on a page.

Steps to reproduce

Workaround

   1                 if action == 'Load' and not request.user.may.write(page.page_name):
   2                     data['action'] = 'show'
   3                     data['disabled'] = disabled

Discussion

Hmm, a user can enter a different name than the one he is reading for action Load. So disabling it because of rights of the current page is not the best solution. Also a user could enter a name where he has no rights to Load to.

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/LoadPageContentDisableIfNotWritePerm (last edited 2010-10-11 03:15:11 by ReimarBauer)