Skip to content

Commit

Permalink
Changed the name of the new function
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Andreasson committed Apr 8, 2019
1 parent 509525c commit 20bace4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class SecurityTrimmedControl extends React.Component<ISecurityTrimmedCont
const { context, remoteSiteUrl, relativeLibOrListUrl, permissions } = this.props;
// Check if all properties are provided
if (remoteSiteUrl && relativeLibOrListUrl && permissions) {
const apiUrl = this.checkPermissionOnResource();
const apiUrl = this.getUrlByResource();
const result = await context.spHttpClient.get(apiUrl, SPHttpClient.configurations.v1).then(data => data.json());
// Check if a result was retrieved
if (result) {
Expand Down Expand Up @@ -150,7 +150,7 @@ export class SecurityTrimmedControl extends React.Component<ISecurityTrimmedCont
}
}

private checkPermissionOnResource() {
private getUrlByResource() {
const { remoteSiteUrl, relativeLibOrListUrl, folderPath, itemId } = this.props;

// Check permission on a specific item.
Expand Down

0 comments on commit 20bace4

Please sign in to comment.