skydread1/flybot.sg

Edit buttons show for every posts for non-admin users

skydread1 opened this issue · 0 comments

Problem

Users with :editor role only cannot edit posts of other users. If they try to do so, the server will return an error.

Since they are not allowed to edit these posts in the first place, should not show the edit button on these posts.

Suggestion

  • update page-post to hide the necessary edit buttons depending on user roles.