You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permission settings are set to 'guest' but could be passed through options, allowing developers to customize in their project-level configuration.
Proposed solution
Describe the solution you'd like
Update lib/guide.js to use options.permission || 'guest' in the canView() function and options.permissionErrorMessage || 'You must be logged in to view this page' in place of the hardcoded error message.
A developer could then define permission and permissionErrorMessage in their project level configuration or use the defaults.
The text was updated successfully, but these errors were encountered:
The problem to solve
Permission settings are set to 'guest' but could be passed through options, allowing developers to customize in their project-level configuration.
Proposed solution
Describe the solution you'd like
Update
lib/guide.js
to useoptions.permission || 'guest'
in thecanView()
function andoptions.permissionErrorMessage || 'You must be logged in to view this page'
in place of the hardcoded error message.A developer could then define
permission
andpermissionErrorMessage
in their project level configuration or use the defaults.The text was updated successfully, but these errors were encountered: