Skip to content

Commit 074ee83

Browse files
committed
Updated changelog + documentation
1 parent 36b73a2 commit 074ee83

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.JSON

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"`RichText`: New control added [#20](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/20)"
1010
],
1111
"enhancements": [
12+
"`SecurityTrimmedControl`: Support for item and folder permission checks added [#271](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/271)",
1213
"Retrieve the user its profile picture from SharePoint instead of Office 365 / Outlook [#248](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/248)",
1314
"Added `Lithuanian` localization [#247](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/247)",
1415
"`FileTypeIcon`: Added support for PDF icon file types [#260](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/260)",
@@ -22,6 +23,7 @@
2223
},
2324
"contributions": [
2425
"[Francis](https://github.com/PzKfWg)",
26+
"[Fredrik Andreasson](https://github.com/Varuuna)",
2527
"[Hugo Bernier](https://github.com/hugoabernier)",
2628
"[Tautvydas Duda](https://github.com/ltdu)",
2729
"[Özgür Ersoy](https://github.com/moersoy)",

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Enhancements
1212

13+
- `SecurityTrimmedControl`: Support for item and folder permission checks added [#271](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/271)
1314
- Retrieve the user its profile picture from SharePoint instead of Office 365 / Outlook [#248](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/248)
1415
- Added `Lithuanian` localization [#247](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/247)
1516
- `FileTypeIcon`: Added support for PDF icon file types [#260](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/260)
@@ -23,7 +24,7 @@
2324

2425
### Contributors
2526

26-
Special thanks to our contributors (in alphabetical order): [Francis](https://github.com/PzKfWg), [Hugo Bernier](https://github.com/hugoabernier), [Tautvydas Duda](https://github.com/ltdu), [Özgür Ersoy](https://github.com/moersoy), [Robert Lindström](https://github.com/robert-lindstrom), [Alex Terentiev](https://github.com/AJIXuMuK).
27+
Special thanks to our contributors (in alphabetical order): [Francis](https://github.com/PzKfWg), [Fredrik Andreasson](https://github.com/Varuuna), [Hugo Bernier](https://github.com/hugoabernier), [Tautvydas Duda](https://github.com/ltdu), [Özgür Ersoy](https://github.com/moersoy), [Robert Lindström](https://github.com/robert-lindstrom), [Alex Terentiev](https://github.com/AJIXuMuK).
2728

2829
## 1.12.0
2930

docs/documentation/docs/about/release-notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Enhancements
1212

13+
- `SecurityTrimmedControl`: Support for item and folder permission checks added [#271](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/271)
1314
- Retrieve the user its profile picture from SharePoint instead of Office 365 / Outlook [#248](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/248)
1415
- Added `Lithuanian` localization [#247](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/247)
1516
- `FileTypeIcon`: Added support for PDF icon file types [#260](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/260)
@@ -23,7 +24,7 @@
2324

2425
### Contributors
2526

26-
Special thanks to our contributors (in alphabetical order): [Francis](https://github.com/PzKfWg), [Hugo Bernier](https://github.com/hugoabernier), [Tautvydas Duda](https://github.com/ltdu), [Özgür Ersoy](https://github.com/moersoy), [Robert Lindström](https://github.com/robert-lindstrom), [Alex Terentiev](https://github.com/AJIXuMuK).
27+
Special thanks to our contributors (in alphabetical order): [Francis](https://github.com/PzKfWg), [Fredrik Andreasson](https://github.com/Varuuna), [Hugo Bernier](https://github.com/hugoabernier), [Tautvydas Duda](https://github.com/ltdu), [Özgür Ersoy](https://github.com/moersoy), [Robert Lindström](https://github.com/robert-lindstrom), [Alex Terentiev](https://github.com/AJIXuMuK).
2728

2829
## 1.12.0
2930

docs/documentation/docs/controls/SecurityTrimmedControl.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,15 @@ The `SecurityTrimmedControl` can be configured with the following properties:
6868
| remoteSiteUrl | string | no | The URL of the remote site. Required when you want to check permissions on remote site or list. |
6969
| relativeLibOrListUrl | string | no | The relative URL of the list or library. Required when you want to check permissions on remote list. |
7070

71+
The `PermissionLevel` enum has the following values:
72+
73+
| Value | Description | Required properties |
74+
| ---- | ---- | ---- |
75+
| currentWeb | Checks permissions on the current web | `context`, `permissions` |
76+
| currentList | Checks permissions in the current loaded list | `context`, `permissions` |
77+
| remoteWeb | Checks permissions on the specified site URL | `context`, `permissions`, `remoteSiteUrl` |
78+
| remoteListOrLib | Checks permissions on the specified list/library URL in combination with the site URL | `context`, `permissions`, `remoteSiteUrl`, `relativeLibOrListUrl` |
79+
| remoteListItem | Check permissions on a specific item in a list/library | `context`, `permissions`, `remoteSiteUrl`, `relativeLibOrListUrl`, `itemId` |
80+
| remoteFolder | Check permissions on a specific folder | `context`, `permissions`, `remoteSiteUrl`, `relativeLibOrListUrl`, `folderPath` |
7181

7282
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/SecurityTrimmedControl)

0 commit comments

Comments
 (0)