non authors can only derive a method

This commit is contained in:
dcore94 2024-01-31 16:37:17 +01:00
parent ab07310252
commit 19d7be6ea0
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"