Changes between Version 10 and Version 11 of ProtectedMacro
- Timestamp:
- Nov 10, 2015, 8:36:07 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProtectedMacro
v10 v11 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Protect parts of a wiki page from invalid access =3 2 4 = = Description ==3 = Protect parts of a wiki page from invalid access 5 4 6 === Wiki === 5 == Description 6 7 === Wiki 7 8 8 9 With the Trac Protected macro it is possible to limit access to parts of a wiki page. … … 17 18 }}} 18 19 19 A protected part can use !protected, !protected-red, !protected-blue, or !protected-green to provide access restrictions on different levels. Users will only see these protected sections when they have the permissions "PROTECTED_VIEW", "PROTECTED_RED_VIEW", "PROTECTED_BLUE_VIEW", or "PROTECTED_GREEN_VIEW",respectively. A !protected part will be rendered with a red line to the left, a !protected-blue part will be rendered with a blue line to the left, etc.20 A protected part can use !protected, !protected-red, !protected-blue, or !protected-green to provide access restrictions on different levels. Users will only see these protected sections when they have the permissions `PROTECTED_VIEW`, `PROTECTED_RED_VIEW`, `PROTECTED_BLUE_VIEW`, or `PROTECTED_GREEN_VIEW` respectively. A !protected part will be rendered with a red line to the left, a !protected-blue part will be rendered with a blue line to the left, etc. 20 21 21 22 Note: when searching though the wiki the protected parts are still shown 22 23 23 === Attachment ===24 === Attachment 24 25 25 Attachments are protected when the key-string "!protected", "!protected-red", "!protected-blue", or "!protected-green" is present in the attachment's description. Users will only see these protected attachments when they have the permissions "PROTECTED_VIEW", "PROTECTED_RED_VIEW", "PROTECTED_BLUE_VIEW", or "PROTECTED_GREEN_VIEW",respectively.26 Attachments are protected when the key-string "!protected", "!protected-red", "!protected-blue", or "!protected-green" is present in the attachment's description. Users will only see these protected attachments when they have the permissions `PROTECTED_VIEW`, `PROTECTED_RED_VIEW`, `PROTECTED_BLUE_VIEW` or `PROTECTED_GREEN_VIEW` respectively. 26 27 27 28 To enable the attachment protection the conf/trac.ini must be modified. Add the ProtectedAttachmentPolicy to the permission_policies: 28 {{{ 29 {{{#!ini 29 30 [trac] 30 31 permission_policies = ProtectedAttachmentPolicy, DefaultPermissionPolicy 31 32 }}} 32 33 33 === Improvements ===34 === Improvements 34 35 35 36 * SECURITY VIOLATION: When searching through the wiki protected parts are searched and shown … … 39 40 * Give visual feedback for unauthorized attachments in the attachment list 40 41 41 == Bugs/Feature Requests ==42 == Bugs/Feature Requests 42 43 43 44 Existing bugs and feature requests for ProtectedMacro are … … 45 46 46 47 If you have any issues, create a 47 [ http://trac-hacks.org/newticket?component=ProtectedMacro&owner=frayjanew ticket].48 [/newticket?component=ProtectedMacro new ticket]. 48 49 49 == Download == 50 [[TicketQuery(component=ProtectedMacro&group=type,format=progress)]] 50 51 51 Download the zipped source from [download:protectedmacro here]. 52 == Download 52 53 53 == Source == 54 Download the zipped source from [export:protectedmacro here]. 54 55 55 You can check out ProtectedMacro from [http://trac-hacks.org/svn/protectedmacro here] using Subversion, or [source:protectedmacro browse the source] with Trac. 56 == Source 56 57 57 == Example == 58 You can check out ProtectedMacro from [/svn/protectedmacro here] using Subversion, or [source:protectedmacro browse the source] with Trac. 59 60 == Example 58 61 59 62 {{{ … … 80 83 }}} 81 84 82 == Recent Changes ==85 == Recent Changes 83 86 84 87 [[ChangeLog(protectedmacro, 3)]] 85 88 86 == Author/Contributors ==89 == Author/Contributors 87 90 88 91 '''Author:''' [wiki:frayja] [[BR]] 89 '''Maintainer:''' [ wiki:frayja] [[BR]]92 '''Maintainer:''' [[Maintainer]] [[BR]] 90 93 '''Contributors:'''