Skip to content

Commit

Permalink
Fix for jira.com hosted sites (kovetskiy#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackerydev authored Jan 3, 2023
1 parent 3e558ac commit 90d8729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/confluence/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func (api *API) RestrictPageUpdates(
) error {
var err error

if strings.HasSuffix(api.rest.Api.BaseUrl.Host, "atlassian.net") {
if strings.HasSuffix(api.rest.Api.BaseUrl.Host, "jira.com") || strings.HasSuffix(api.rest.Api.BaseUrl.Host, "atlassian.net") {
err = api.RestrictPageUpdatesCloud(page, allowedUser)
} else {
err = api.RestrictPageUpdatesServer(page, allowedUser)
Expand Down

0 comments on commit 90d8729

Please sign in to comment.