Changes between Version 10 and Version 11 of ProtectedMacro


Ignore:
Timestamp:
Nov 10, 2015, 8:36:07 AM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • ProtectedMacro

    v10 v11  
    11[[PageOutline(2-5,Contents,pullout)]]
    2 = Protect parts of a wiki page from invalid access =
    32
    4 == Description ==
     3= Protect parts of a wiki page from invalid access
    54
    6 === Wiki ===
     5== Description
     6
     7=== Wiki
    78
    89With the Trac Protected macro it is possible to limit access to parts of a wiki page.
     
    1718}}}                                               
    1819
    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.
     20A 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.
    2021
    2122Note: when searching though the wiki the protected parts are still shown
    2223
    23 === Attachment ===
     24=== Attachment
    2425
    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.
     26Attachments 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.
    2627
    2728To enable the attachment protection the conf/trac.ini must be modified. Add the ProtectedAttachmentPolicy to the permission_policies:                                         
    28 {{{
     29{{{#!ini
    2930[trac]                                                                 
    3031permission_policies = ProtectedAttachmentPolicy, DefaultPermissionPolicy
    3132}}}
    3233
    33 === Improvements ===
     34=== Improvements
    3435
    3536 * SECURITY VIOLATION: When searching through the wiki protected parts are searched and shown
     
    3940 * Give visual feedback for unauthorized attachments in the attachment list
    4041
    41 == Bugs/Feature Requests ==
     42== Bugs/Feature Requests
    4243
    4344Existing bugs and feature requests for ProtectedMacro are
     
    4546
    4647If you have any issues, create a
    47 [http://trac-hacks.org/newticket?component=ProtectedMacro&owner=frayja new ticket].
     48[/newticket?component=ProtectedMacro new ticket].
    4849
    49 == Download ==
     50[[TicketQuery(component=ProtectedMacro&group=type,format=progress)]]
    5051
    51 Download the zipped source from [download:protectedmacro here].
     52== Download
    5253
    53 == Source ==
     54Download the zipped source from [export:protectedmacro here].
    5455
    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
    5657
    57 == Example ==
     58You can check out ProtectedMacro from [/svn/protectedmacro here] using Subversion, or [source:protectedmacro browse the source] with Trac.
     59
     60== Example
    5861
    5962{{{
     
    8083}}}
    8184
    82 == Recent Changes ==
     85== Recent Changes
    8386
    8487[[ChangeLog(protectedmacro, 3)]]
    8588
    86 == Author/Contributors ==
     89== Author/Contributors
    8790
    8891'''Author:''' [wiki:frayja] [[BR]]
    89 '''Maintainer:''' [wiki:frayja] [[BR]]
     92'''Maintainer:''' [[Maintainer]] [[BR]]
    9093'''Contributors:'''