summaryrefslogtreecommitdiff
path: root/modules/blogapi
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-08-22 20:39:43 +0000
committerDries Buytaert <dries@buytaert.net>2005-08-22 20:39:43 +0000
commit6a4e6df36fe43b45c78a160fdf58df8d78ae5f02 (patch)
treebc214693b7f2b0d75feb593766b5d3b825ef3cc7 /modules/blogapi
parent22a98528b741042a06d1227182bd4162cc2e8c45 (diff)
downloadbrdo-6a4e6df36fe43b45c78a160fdf58df8d78ae5f02.tar.gz
brdo-6a4e6df36fe43b45c78a160fdf58df8d78ae5f02.tar.bz2
- Patch #17592 by killes: improved access denied messages.
Diffstat (limited to 'modules/blogapi')
-rw-r--r--modules/blogapi/blogapi.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 6b35a68ef..9dd9d511b 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -215,7 +215,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
}
if (!node_access('create', $node)) {
- return blogapi_error(message_access());
+ return blogapi_error(t('You do not have permission to create the type of post you wanted to create.'));
}
$nid = node_save($node);
@@ -246,7 +246,7 @@ function blogapi_blogger_edit_post($appkey, $postid, $username, $password, $cont
unset($node->teaser);
if (!node_access('update', $node)) {
- return blogapi_error(message_access());
+ return blogapi_error(t('You do not have permission to update this post.'));
}
$node->status = $publish;
@@ -485,7 +485,7 @@ function blogap_mti_publish_post($postid, $username, $password) {
$node->status = 1;
if (!node_access('update', $node)) {
- return blogapi_error(message_access());
+ return blogapi_error(t('You do not have permission to update this post.'));
}
node_save($node);
@@ -520,7 +520,7 @@ function blogapi_validate_user($username, $password) {
return $user;
}
else {
- return message_access();
+ return t("You either tried to edit somebody else's blog or you don't have permission to edit your own blog.");
}
}
else {