[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reject or accept non-draft entries in Wordpress
- To: atom-protocol <atom-protocol@xxxxxxx>
- Subject: Reject or accept non-draft entries in Wordpress
- From: "Teo Hui Ming" <teohuiming.work@xxxxxxxxx>
- Date: Fri, 25 Jan 2008 21:44:48 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=rSQSJhN1MXZBUFje0MRKwtgzDWqXYTR+vDpf7KE6hUs=; b=mP7oalQ+/sKFotTyJgjmzE+UoELesr6Y0twE8tJK/vrUMUjId6Vkg5r6t1VB5BYKpRs3FabD3AeO4GRyz8NwME9eijgbQOA8moVQcfkdE6mlr76Bn1Q9SM6VxkwbAJwFk1jkSEQJ8oEZkoOR3Iq2bD2k1DJs7wfES0j+SF3/ug0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rYsRMAgU5UH35MPZSE9oihlkN8waoD1ltgAl5gXd34vezhYGqqgK88gvmWl9BVcQ2o2fFJOp/GY0BtOZk46+A02rZE8zAvFgqtFFiOpcrspPuCk7upDbTwQIgJcmrqofIcLnPsLSEalNlCNcNNhgRmIppV+flFkCvqPOJpi8M6g=
- List-archive: <http://www.imc.org/atom-protocol/mail-archive/>
- List-id: <atom-protocol.imc.org>
- List-unsubscribe: <mailto:atom-protocol-request@imc.org?body=unsubscribe>
- Sender: owner-atom-protocol@xxxxxxxxxxxx
Hi, I have a question regarding the common use of app:draft in
blogging application.
In Wordpress, different roles have different capabilities. In
particular, users with "Contributor" role can only submit draft
entries, but they cannot publish entries.
So, how a blog server should response in these two scenario:
1) when contributor submits an entry without app:draft element
(implied draft='no')
2) when contributor submits an entry with an app:draft element set to 'no'
The current Worpress's AtomPub implementation rejects the request (in
both 1 and 2) with 401 Unauthorized, by telling the user that "you do
not have the right to edit/publish new posts." [1]
But.. instead of rejecting the request, since AtomPub server may
ignore app:draft element, does it make sense (and user-friendlier) if
Wordpress just process the request, returns 201 Created, but with the
app:draft set to 'yes' by the server?
[1] http://trac.wordpress.org/browser/tags/2.3.2/wp-app.php (line 251)
Thanks,
--
Teo Hui Ming