atdrupal / at_base.module

Provide some more API for developer to work with Drupal (7).
https://drupal.org/project/at_base
GNU General Public License v2.0
5 stars 4 forks source link

Ignore render view if don't have permission to acces #218

Open mrsinguyen opened 10 years ago

mrsinguyen commented 10 years ago
An exception has been thrown during the rendering of a template ("") in "sites/ictdev.da.go1.com.vn/modules/custom/ict_custom/templates/nodes/funded-idea-full.html.twig" at line 55.
duythien commented 10 years ago

If I run at_base in my enviroment so result like

result

Or In template twig check permission before render, for example

 {% if user.uid  %}
{{ 'clone_node_funded_respone' | drupalView({
    display_id: 'default'  })
}}
{% endif %}