Merge pull request 'non authors can only derive a method' (#8) from master into prod
Reviewed-on: #8
This commit is contained in:
commit
cafb395cfc
|
@ -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