Skip to content

Commit

Permalink
Included fix for ep_guest on permissionDenied.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Oct 28, 2023
1 parent 96b0bcb commit a29d0b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ exports.eejsBlock_permissionDenied = (hookName, context) => {
if (user == null) return;
// Load the HTML into a throwaway div instead of calling $.load() to avoid
// https://github.com/cheeriojs/cheerio/issues/1031
const content = $('<div>').html(context.content);
content.find('#permissionDenied').prepend(
makeLogInOutButton(context.renderContext.req)
const content = $.load('<div>', null, false).html(context.content);
content.find('#permissionDenied')
.prepend(makeLogInOutButton(context.renderContext.req)
.css('float', 'right')
.css('padding', '10px'));
context.content = content.html();
Expand Down

0 comments on commit a29d0b5

Please sign in to comment.