non authors can only derive a method
This commit is contained in:
parent
ab07310252
commit
19d7be6ea0
|
@ -278,7 +278,7 @@ class CCPMethodEditorController extends HTMLElement{
|
|||
cloneOrEditMethod(method){
|
||||
const subject = this.#boot.subject
|
||||
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{
|
||||
this.#dragging_method = method.id
|
||||
this.#cloneornew_dialog.style.display = "block"
|
||||
|
|
Loading…
Reference in New Issue