0 Replies Latest reply on May 27, 2014 3:46 AM by lavanya.s

    Drupal check if user has create permissions in group

    lavanya.s

      Hi everyone,

       

      How to check if user has create permissions in private group?

       

      Suppose : I created a group which overrides the "default roles and permission" and group type is "private".

                     For this group member admin gave the permission to create content type blog but "create blog" link is not displaying in his "Actions" widget.

       

      I am checking "Actions" widget like the following code

       

      if (user_is_logged_in() &&  user_access('create blog content', $account)){

              print "Create link";

          }

       

       

      by using user_access is working fine but i have to check permissions in group level?

       

      If any one knows please let share your knowledge regarding this.