fix: user can edit its own author from author list page
This commit is contained in:
1 parent
f084ccb66f
commit
39ff84e967
1 file changed
+2
-2
@@ -151,12 +151,12 @@ function openAdd() {
|
|||||||
|
|
||||||
function openEdit(author: Author, trigger: HTMLElement | null) {
|
function openEdit(author: Author, trigger: HTMLElement | null) {
|
||||||
rememberOpener(trigger)
|
rememberOpener(trigger)
|
||||||
panel.value = { kind: 'edit', author, own: false }
|
panel.value = openFor(author)
|
||||||
}
|
}
|
||||||
|
|
||||||
function openRow(author: Author) {
|
function openRow(author: Author) {
|
||||||
rememberOpener()
|
rememberOpener()
|
||||||
panel.value = { kind: 'view', author }
|
panel.value = openFor(author)
|
||||||
}
|
}
|
||||||
|
|
||||||
function closePanel() {
|
function closePanel() {
|
||||||
|
|||||||
Reference in new issue
Block a user