PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

'View All Forms' Dashboard Widget Permissions issue

  1. yellowhousedesign
    Member

    Hi all,
    If a user does not have the ability to edit forms (gravityforms_edit_forms) shouldn't the 'View all Forms' link on the dashboard widget also be removed? Right now it's still there and just leads to a 'You do not have sufficient permissions to access this page.' message. Any workarounds at the moment? I could always add in my own logic for if the current user had that capability, but is there a filter I can use in the meanwhile to remove that? Thanks!

    Posted 12 years ago on Friday March 30, 2012 | Permalink
  2. yellowhousedesign
    Member

    If you look around like 1017 of gravityforms.php -- that's where it is being called. Adding a little check around that text would be beneficial http://www.pastie.org/3698183 Let me know if you think that could get into the next version. Thanks!

    UPDATE: Or - make this even more flexible, by doing something like: http://www.pastie.org/3698212

    Posted 12 years ago on Friday March 30, 2012 | Permalink
  3. There is currently no work around for this. We'll take a look at the Dashboard Widget and see what needs to be updated so that it is in line of the role management capabilities. Thanks for the example code. We'll get this updated in the next release.

    Posted 12 years ago on Monday April 2, 2012 | Permalink

This topic has been resolved and has been closed to new replies.