Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#7351 closed enhancement (fixed)

Press This won't allow Contributors to submit content

Reported by: paulhontz Owned by: noel
Priority: normal Milestone: 2.8
Component: Press This Version:
Severity: normal Keywords: has-patch tested
Cc: Focuses:

Description

If you click the bookmarklet while logged in as a contributor, you are unable to submit content.

However, if you try and access the write post from the backend, it works fine.

Attachments (2)

7351-press-this.php.patch​ (2.4 KB ) - added by ninjaWR 18 years ago.
allows contributors to use the bookmarklet
press-this-contributors.patch​ (2.9 KB ) - added by mrmist 18 years ago.
Press this and tools

Download all attachments as: .zip

Change History (11)

#1 @ryan
18 years ago

It checks for the publish_posts capability, which contributor's do not have. Press This is aimed at quick publishing and ignores the rest of the workflow states. Having it check for edit_posts and then putting a publish_posts check around the Publish button is easy enough if we want to support contributors. Press This just isn't targeted at them at the moment.

#2 @paulhontz
18 years ago

Gotcha, thanks for clarifying ryan.

I think it would make a lot of sense if they could access it, but instead of it just saying "Save", it could have something like "Submit for Approval" or something along those lines.

Just a thought.

#3 @thee17
18 years ago

  • Milestone 2.6.1 → 2.7

#4 @ryan
18 years ago

  • Milestone 2.7 → 2.8

#5 @jacobsantos
18 years ago

  • Keywords needs-patch added

@ninjaWR
18 years ago

allows contributors to use the bookmarklet

#6 @ninjaWR
18 years ago

  • Keywords has-patch needs-testing added; needs-patch removed
  • Priority high → normal
  • Type defect (bug) → enhancement

the patch works for me, but if another user tested it, that would be nice

#7 @mrmist
18 years ago

  • Keywords tested added; needs-testing removed

refreshed patch against trunk - included a patch for tools.php so that contributors can add the press this applet in the first place ;)

Seems ok with contributors. The only issues I could find were -

  1. The add category link is present (this shouldn't be there, it should use the same logic test as it does for edit posts). (The contributor can't actually add a cat, but the link shouldn't even exist)
  1. It didn't work against my local host test environment, but I suspect that is a local issue and not related to the patch.

#8 @ryan
18 years ago

  • Component General → Press This
  • Owner changed from anonymous to noel

#9 @noel
18 years ago

  • Resolution → fixed
  • Status new → closed
Note: See TracTickets for help on using tickets.