Skip to content

Commit

Permalink
Merge branch '7.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
at055612 committed Nov 6, 2024
2 parents bbd9ce4 + f2965b1 commit f3a2b75
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A new version of stroom-docs is released for each commit so version tags
are not recorded in here. Changes are in chronological order with the most
recent at the top.

* Add section on moving/copying documents and folder permissions to the `Document Permissions` page.
* Add sections on moving/copying documents and folder permissions to the `Document Permissions` page.

* Remove `Roles` section and add content to `Security` section on doc/app permissions.

Expand Down
34 changes: 25 additions & 9 deletions content/en/docs/user-guide/security/doc-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ The following is the list of different permissions that can be granted to users/
| **Use** | Only allow use of a folder, e.g. allow use of an index as part of a search process but do not allow viewing of the folder itself. |


{{% note %}}
The permissions on a folder apply **only** to the folder itself and has no bearing on what you can/can't do to its child items.
The permissions on each child item in the folder control what you can/can't do to those items.

For example, if you only have _View_ permission on a folder, but have _Delete_ on a document in that folder, then you are able to delete that document and thus change the contents of the folder.

Similarly, if you have _View_ permission on a folder but have no permission on any of its child items, then you will just see an empty folder.
{{% /note %}}


### Implied Permissions
Expand Down Expand Up @@ -115,10 +107,34 @@ The `Use` permission is not relevant to all document types.

## Permissions on Folders

Folders {{< stroom-icon "document/Folder.svg" >}} in the explorer tree work in the same way as documents when it comes to permissions.
Folders {{< stroom-icon "document/Folder.svg" >}} in the explorer tree work mostly in the same way as documents when it comes to permissions.
There are a couple of exceptions to this.


### Permission on Folder Contents

The permissions on a folder apply **only** to the folder itself and has no bearing on what you can/can't do to its child items.
The permissions on each child item in the folder control what you can/can't do to those items.

For example, if you only have _View_ permission on a folder, but have _Delete_ on a document in that folder, then you are able to delete that document and thus change the contents of the folder.

Similarly, if you have _View_ permission on a folder but have no permission on any of its child items, then you will just see an empty folder.


### Ancestor Folder Visibility

A folder {{< stroom-icon "document/Folder.svg" >}} will be visible to a user in the explorer tree if the user has _View_ permission on it **OR** if the user has _View_ permission on any single document/folder that is a descendant of it.

For example, if a user has _View_ permission on a Dictionary {{< stroom-icon "document/Dictionary.svg" >}} _Dictionary_XYZ_ with path

**System / Folder_A / Folder_B / Dictionary_XYZ**

but **no** permissions on _Folder A_ or _Folder B_, they will be able to see both Folders in the explorer tree in addition to the Dictionary.
They will however not be able to open those Folders as they do not have the permission.

Therefore, when granting permissions on a document/folder to a user/group, you are also implicitly granting visibility (but not _View_ permission) on all ancestor folders.


### Create Permissions

Folders can have one or more _Create Permissions_ granted on them to users/groups.
Expand Down

0 comments on commit f3a2b75

Please sign in to comment.