Skip to content

Commit 20bace4

Browse files
author
Fredrik Andreasson
committed
Changed the name of the new function
1 parent 509525c commit 20bace4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/securityTrimmedControl/SecurityTrimmedControl.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class SecurityTrimmedControl extends React.Component<ISecurityTrimmedCont
115115
const { context, remoteSiteUrl, relativeLibOrListUrl, permissions } = this.props;
116116
// Check if all properties are provided
117117
if (remoteSiteUrl && relativeLibOrListUrl && permissions) {
118-
const apiUrl = this.checkPermissionOnResource();
118+
const apiUrl = this.getUrlByResource();
119119
const result = await context.spHttpClient.get(apiUrl, SPHttpClient.configurations.v1).then(data => data.json());
120120
// Check if a result was retrieved
121121
if (result) {
@@ -150,7 +150,7 @@ export class SecurityTrimmedControl extends React.Component<ISecurityTrimmedCont
150150
}
151151
}
152152

153-
private checkPermissionOnResource() {
153+
private getUrlByResource() {
154154
const { remoteSiteUrl, relativeLibOrListUrl, folderPath, itemId } = this.props;
155155

156156
// Check permission on a specific item.

0 commit comments

Comments
 (0)