mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Fix for jira.com hosted sites (#231)
This commit is contained in:
parent
3e558ac2e3
commit
90d8729a7d
@ -704,7 +704,7 @@ func (api *API) RestrictPageUpdates(
|
|||||||
) error {
|
) error {
|
||||||
var err 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)
|
err = api.RestrictPageUpdatesCloud(page, allowedUser)
|
||||||
} else {
|
} else {
|
||||||
err = api.RestrictPageUpdatesServer(page, allowedUser)
|
err = api.RestrictPageUpdatesServer(page, allowedUser)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user