Item12198: Foswiki::Func::checkAccessPermission overrides meta text, and $text option is non-functional
Priority: Urgent
Current State: Closed
Released In: 1.1.6
Target Release: patch
Applies To: Engine
Component: FoswikiFunc
Branches: Release01x01
MichaelDaum found and fixed this issue as part of
Item11983. It wasn't really related to the Store performance fix, back-porting to 1.1.5
- Foswiki::Func::checkAccessPermissions could override the $meta object's text by accident; before, the $text parameter was non-functional as well when checkAccessPermissions was called with a "loaded" meta object.
- Fixed the respective unit tests testing for the wrong result: an ALLOW in META overrides the ALLOW in TEXT so the access was granted, not permitted.
--
GeorgeClark - 27 Oct 2012