• Good evening guys.
    I have to set up a special role that can manage a specific custom post type, let’s call it Banner, and of course it have to manage media attachments (uploads, delete, modify).

    As far as I see, the only way to grant the right permission is assign it the ‘edit_posts’ capability. The problem is that this role must not manage posts!

    Is there a smart way to do that?
    Otherwise a solution, maybe not the best one, is to assign it all the right capabilities on posts and then hide posts from the menu bar ??

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    If hiding posts is a viable option, then security separating banner users from regular posts must not be very important. If security is not important, then give everyone the same capabilities and request that banner editors not mess with regular posts even though they could.

    If security is an issue, then just hiding posts is not a viable approach and you need to find something that works within the roles and capabilities system. If those who can edit posts should be allowed to also edit banners, one solution would be to utilize regular posts as the banner post type and create a custom post type with its own capabilities for the purpose we normally use posts for. Users who can edit this new post type would also have capabilities to edit banner posts as well as attachments.

    If each user group must be completely independent with no cross over (except for admins), you would likely need to create custom attachments to go with the custom post type. This likely means building a custom attachment UI as well, not a trivial matter.

    Thread Starter koolmind

    (@koolmind)

    I understand!
    I believe that the “safe” solution is not a viable one… so I hope that my client will be smart enough not to mess with posts.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manage media attachment without managing posts’ is closed to new replies.