summaryrefslogtreecommitdiff
path: root/modules/page.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-07-13 20:40:46 +0000
committerDries Buytaert <dries@buytaert.net>2004-07-13 20:40:46 +0000
commit3613729d4f1ad8675305445e2717856b2c377faa (patch)
treecb80c11a018a9c68dbc25f924619a6a87fc73f68 /modules/page.module
parent50d78e9855b529651f3c3ef05419215fcea58e21 (diff)
downloadbrdo-3613729d4f1ad8675305445e2717856b2c377faa.tar.gz
brdo-3613729d4f1ad8675305445e2717856b2c377faa.tar.bz2
- Patch #8398 by TDobes: changed permissions for the blog, story, and page modules (and all occurrances elsewhere) to match their 4.4.x equivalents. In the discussion when these permissions were introduced, it was decided that "edit own ..." was clearer, but "maintain personal ..." slipped into CVS HEAD anyway, while "edit own ..." landed in the 4.4.x branch.
Changes are as follows: "maintain personal blog" -> "edit own blog" (aggregator.module, blog.module, blogapi.module) "maintain personal pages" -> "edit own pages" (page.module) "maintain personal stories" -> "edit own stories (story.module)
Diffstat (limited to 'modules/page.module')
-rw-r--r--modules/page.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/page.module b/modules/page.module
index b5f742be4..7babfbcf5 100644
--- a/modules/page.module
+++ b/modules/page.module
@@ -12,7 +12,7 @@ function page_help($section) {
<p>If you enable the <strong>create PHP content</strong> permission for a role, pages may consist of PHP code in addition to HTML and text.</p>
<h3>User access permissions for pages</h3>
<p><strong>create pages:</strong> Allows a role to create pages. They cannot edit or delete pages, even if they are the authors. You must enable this permission to in order for a role to create a page.</p>
- <p><strong>maintain personal pages:</strong> Allows a role to add/edit pages if they own the page. Use this permission if you want users to be able to edit and maintain their own pages.</p>
+ <p><strong>edit own pages:</strong> Allows a role to add/edit pages if they own the page. Use this permission if you want users to be able to edit and maintain their own pages.</p>
");
case 'admin/modules#description':
return t('Enables the creation of pages that can be added to the navigation system.');
@@ -25,7 +25,7 @@ function page_help($section) {
* Implementation of hook_perm().
*/
function page_perm() {
- return array('create pages', 'maintain personal pages');
+ return array('create pages', 'edit own pages');
}
/**
@@ -50,11 +50,11 @@ function page_access($op, $node) {
}
if ($op == 'update') {
- return user_access('maintain personal pages') && ($user->uid == $node->uid);
+ return user_access('edit own pages') && ($user->uid == $node->uid);
}
if ($op == 'delete') {
- return user_access('maintain personal pages') && ($user->uid == $node->uid);
+ return user_access('edit own pages') && ($user->uid == $node->uid);
}
}