Closed (fixed)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
18 Feb 2009 at 13:05 UTC
Updated:
6 Mar 2009 at 00:40 UTC
Jump to comment: Most recent file
Idea is borrowed from #298502-6: Better access to another user's messages and slightly extended.
Instead of using our own disallow_anon function (actually, that one is only used on a single page), use a menu access callback to disallow anon users.
- Allows to set a permission, defaults to read privatemsg
- All menu items except admin page use _privatemsg_access
- privatemsg_block checks access too
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | privatemsg.disallow2.patch | 9.83 KB | berdir |
| privatemsg.disallow.patch | 4.72 KB | berdir |
Comments
Comment #1
berdirUpdated patch:
- renamed to privatemsg_user_access to remove the _ and avoid conflict with hook_access
- Incorporates #367743: Read tab should not show on messages/new/%, the privatemsg_view_access function does now use privatemsg_user_access
- replaced all user_access calls with privatemsg_user_access, also in pm_block_user and privatemsg_filter
Comment #2
litwol commented2 issues with 1 patch. /me likes.
committed.