Commit 24db596d authored by Ivanq's avatar Ivanq

Repo: Also load ZeroID via CORS

parent 506c29df
......@@ -11,12 +11,20 @@ class Repository {
// Permission actions
addMerger() {
let siteInfo;
return this.zeroPage.getSiteInfo()
.then(siteInfo => {
.then(s => {
siteInfo = s;
if(siteInfo.settings.permissions.indexOf("Merger:GitCenter") == -1) {
return zeroPage.cmd("wrapperPermissionAdd", ["Merger:GitCenter"]);
}
})
.then(() => {
if(siteInfo.settings.permissions.indexOf("Cors:1iD5ZQJMNXu43w1qLB8sfdHVKppVMduGz") == -1) {
return zeroPage.cmd("corsPermission", ["1iD5ZQJMNXu43w1qLB8sfdHVKppVMduGz"]);
}
})
.then(() => {
return this.zeroPage.cmd("mergerSiteList");
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment