开发者

how to show View for certain IP Addresses and logged user?

开发者 https://www.devze.com 2023-02-11 10:28 出处:网络
How can I show a View for cer开发者_JAVA技巧tain visitors from a specific IP address or specific logged in user? The view should only display for a visitor from a specific IP address,and other visitor

How can I show a View for cer开发者_JAVA技巧tain visitors from a specific IP address or specific logged in user? The view should only display for a visitor from a specific IP address,and other visitors see an empty View.


One way would be to use the Restrict Login or Role Access by IP Address module to assign the specific IP address(es) a role. Then in the view, configure Basic settings > Access to limit access to the view to only users with that particular role.

0

精彩评论

暂无评论...
验证码 换一张
取 消