Forum Replies Created

Viewing 15 posts - 31 through 45 (of 93 total)
  • Author
    Posts
  • in reply to: Search Pages not working for custom roles #7117
    edering
    Participant

    Thanks, I just sent the email

    in reply to: Search Pages not working for custom roles #7113
    edering
    Participant

    No, I am using Admin Menu Access with Block Selected.

    in reply to: YITH WooCommerce Gift Card Plugin #6847
    edering
    Participant

    thanks

    in reply to: YITH WooCommerce Gift Card Plugin #6845
    edering
    Participant

    Thanks! “tab” URL paramenters? Does that mean I could control which of these “tabs” the Role can see? https://www.screencast.com/t/FpYogPj5XfH4 Ideally, this Role would only see the Gift Card Dashboard, and the Create Card button. Also, I noticed that the Role of Orders is not letting the Use click on the Post to see the details even though I have all 4 Capabilities on for that Role CPT and also all 12 for the main Posts. How do allow them to view/edit Gift Card Posts, and create New Ones (the Role is working for that right now)?

    in reply to: YITH WooCommerce Gift Card Plugin #6839
    edering
    Participant

    Hi. I just sent you an admin password for doublec.us Thanks.

    in reply to: YITH WooCommerce Gift Card Plugin #6837
    edering
    Participant

    I am using Admin Menu but using Block Selected. https://www.screencast.com/t/AzDL732iZNnL When logged in as this Role, I do see the YITH menu, and the Gift Cards choice. It just redirects me to main Dashboard. Also, I do have manage_options enabled.

    edering
    Participant

    Thanks, that worked!

    edering
    Participant

    Thanks!

    edering
    Participant

    Also, we already have this filter being used once for a different role/custom post type. How do we add it again, but make sure they run independently? See below.

    // URE to allow Scholarship Role access to Scholarship plugin while restricting Pages for user
    add_filter('ure_restrict_edit_post_type', 'exclude_posts_from_edit_restrictions', 10, 1);
    function exclude_posts_from_edit_restrictions($post_type) {
      $restrict_it =  $post_type;
      $user = wp_get_current_user();
      if ( empty( $user) || !is_array( $user->roles ) ) {
          return $restrict_it;
      }
      if ( in_array( 'scholarships', $user->roles ) ) {  // Role ID
          if ($post_type=='scholarship') {  // CPT ID
            $restrict_it = false;
          }
      }
      return $restrict_it;
    }
    // end URE to allow Scholarship Role access
    edering
    Participant

    Thanks! For the 2nd part, our SDoL Page Editor role ID is called sdol-page-editor. Would I use that for the Role, AND set the post_type to “post”? Or, is the idea to list the Role ID for Applications & Tools (applications_tools)? And do I list the post_type for the Applications & Tools custom post type?

    edering
    Participant

    The user does not see any Pages menu item at all. I cloned Production to Staging and then disabled all plugins except URE. When testing a user as described above, now I don’t see any menu items except for Profile (not even the Applications & Tools, which I saw before). What would cause that? I had already given you access to this site before. You can access it at https://staging-sdlancaster.kinsta.cloud/ with userroleeditor (you can reset your password). I have enabled all Plugins again (except for 4 that are also deactivated on Production). I also removed the Post ID from the restrictions of the User called “icomm” (my test user). This is the user that should use the Applications & Tools Role (full access to that Custom Post Type) plus SDoL Page Editor role access for the post ID=28499. If you could look at that and test with icomm, I would appreciate it.

    edering
    Participant

    For your first step, disabling the restrictions add-on does show all Posts in my specific Custom Post Type for that Role. But no pages show for the SDoL Page Editor Role at all. What would cause that? I don’t think Pages is being blocked in the Admin Menu (if you look at my links in my first post).

    edering
    Participant

    Thank you! This is working great now!

    edering
    Participant

    Vlad,

    Thanks for your work on this. Unfortunately, the user group in question isn’t working. If you’re able, can you create a user with the role Program Editor and assign a
    Analytics Group Name checkbox in the user profile? You should not be able to see all posts — only a limited number. The good news is that creating a post no longer fails, however, all posts should not show for non-admin roles. Are you able to take a look? Thanks for your help so far.

    edering
    Participant

    Vladimir, I create an Admin user for you. Please look for an email to set your password. I am hoping you having access to the functions file and seeing where people assign the Analytics Group Name to a User will help you.

Viewing 15 posts - 31 through 45 (of 93 total)