non authors can only derive a method #8

Merged
m.lettere merged 1 commits from master into prod 2024-02-01 09:28:47 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -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"