16 | | A protected part can use !protected, !protected-red, |
17 | | !protected-blue, or !protected-green to provide access |
18 | | restrictions on different levels. Users will only see these |
19 | | protected sections when they have the permissions |
20 | | "PROTECTED_VIEW", "PROTECTED_RED_VIEW", "PROTECTED_BLUE_VIEW", or |
21 | | "PROTECTED_GREEN_VIEW", respectively. |
| 18 | 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. |
27 | | Attachments are protected when the key-string "!protected", |
28 | | "!protected-red", "!protected-blue", or "!protected-green" is |
29 | | present in the attachment's description. |
30 | | |
31 | | To enable the attachment protection the conf/trac.ini must be |
32 | | modified. Add the ProtectedAttachmentPolicy to the |
33 | | permission_policies: |
| 22 | === Attachment === |
| 23 | |
| 24 | 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. |
| 25 | |
| 26 | To enable the attachment protection the conf/trac.ini must be modified. Add the ProtectedAttachmentPolicy to the permission_policies: |
82 | | #: This will only be visible to those that do not have the PROTECTED_BLUE_VIEW |
83 | | This will only be visible to those that have PROTECTED_BLUE_VIEW |
84 | | Will show all content with a blue line to the left |
85 | | }}} |
86 | | |
87 | | {{{ |
88 | | #!protected-green |
89 | | #: This will only be visible to those that do not have the PROTECTED_GREEN_VIEW |
90 | | This will only be visible to those that have PROTECTED_GREEN_VIEW |
91 | | Will show all content with a green line to the left |
| 74 | #:[[Include(wiki:RestrictedSection)]] |
| 75 | This will only be visible to those that have the PROTECTED_BLUE_VIEW permission. |
| 76 | Those that do not have this permission will wee the wiki page called RestictedSection |