-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding restricted view warning for EDS #4208
Adding restricted view warning for EDS #4208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ThoWagen -- a few thoughts below!
themes/bootstrap5/templates/_ui/components/hide-offcanvas-button.phtml
Outdated
Show resolved
Hide resolved
themes/bootstrap5/templates/_ui/components/show-sidebar-button.phtml
Outdated
Show resolved
Hide resolved
@@ -76,6 +76,10 @@ | |||
<?php endif; ?> | |||
<?=$this->record($this->driver)->getLabelList() ?> | |||
|
|||
<?php if (($this->showRestrictedViewWarning ?? false) && $restrictedView): ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've put this only in the EDS-specific core.phtml. Should we also include it in the DefaultRecord version, on the assumption that this generic mechanism might also be used in other scenarios?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the DefaultRecord version we don't have a $restrictedView
variable we could use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense -- I think it's fine as it is!
…nd using logginForAcces in more places with better text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ThoWagen -- just one more minor suggestion below. Once that's updated, I'll find some time for hands-on testing, and hopefully will be able to merge after that!
@@ -76,6 +76,10 @@ | |||
<?php endif; ?> | |||
<?=$this->record($this->driver)->getLabelList() ?> | |||
|
|||
<?php if (($this->showRestrictedViewWarning ?? false) && $restrictedView): ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense -- I think it's fine as it is!
Co-authored-by: Demian Katz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ThoWagen!
This PR allows you to display a warning to the users if they only have a restricted view in EDS searches and records.
It also fixes the
loginForAccess.phtml
message for users that are already logged in but still lack permission for the full access.