Skip to content

Commit 56c570d

Browse files
Disbale link when user does not have permission to menu (#4883)
1 parent 1e823a5 commit 56c570d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/foam/u2/view/ReadReferenceView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ foam.CLASS({
156156
.attrs({ href: '#' })
157157
.on('click', (evt) => {
158158
evt.preventDefault();
159-
if ( self.linkTo == 'permissioned' ) {
159+
if ( self.linkTo == 'daoSummary' ) {
160160
this.routeToDAO(this.__subContext__[this.prop.targetDAOKey], this.obj?.id)
161161
} else if ( self.linkTo.includes('/') ) {
162162
this.routeTo('#' + this.linkTo);
@@ -224,7 +224,7 @@ foam.CLASS({
224224

225225
// have permission to service.{prop.targetDAOKey} ?
226226
else if ( this.__subContext__[this.prop.targetDAOKey] ) {
227-
this.linkTo = 'permissioned';
227+
this.linkTo = 'daoSummary';
228228
await this.maybeEnableLink();
229229
return;
230230
}

0 commit comments

Comments
 (0)