Merge pull request 'non authors can only derive a method' (#8) from master into prod

Reviewed-on: #8
This commit is contained in:
Marco Lettere 2024-02-01 09:28:46 +01:00
commit cafb395cfc
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ class CCPMethodEditorController extends HTMLElement{
cloneOrEditMethod(method){ cloneOrEditMethod(method){
const subject = this.#boot.subject const subject = this.#boot.subject
const matchingauthors = method.metadata ? method.metadata.filter(md=>md.role === "author" && md.href.endsWith("/" + subject)).length : 0 const matchingauthors = method.metadata ? method.metadata.filter(md=>md.role === "author" && md.href.endsWith("/" + subject)).length : 0
if(matchingauthors === 0) this.cloneMethod(method.id); if(matchingauthors === 0) this.cloneMethod(method.id, true);
else{ else{
this.#dragging_method = method.id this.#dragging_method = method.id
this.#cloneornew_dialog.style.display = "block" this.#cloneornew_dialog.style.display = "block"