Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Activity Contrib
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2009 at 16:26 UTC
Updated:
21 Dec 2009 at 07:30 UTC
Since today I recognized that if a user wants to delete an activity on their profile they get access denied.
Couldn't see that you have changed anything in that direction (newest dev version).
By the way the activity privacy settings tab isn't shown anymore.
Couldn't remember that I've made any changes in that direction.
Maybe you could offer any solution, because I couldn't find any.
Thx for your great work of the first module and the much better second branch.
Comments
Comment #1
Scott Reynolds commentedIn order to delete an Activity, the user must have "administer activity" permission. Thats why the Access Denied.
As far as the privacy settings tab not should create a separate issue for that.
Changing the title to reflect the new bug. It should be implemented the following way
Write a menu_access callback that takes as argument the aid. It will compare the aid's uid to the GLOBAL['user'] && 'manage own activity settings' || 'administer activity'
Should be a really straight forward patch
Comment #2
SyKce commentedThanks for the quick answer, sorry for the late comment.
I'll try to implement this, when I've got a little bit more time and my site is finished.
But thx a lot for the solution.
Comment #3
Scott Reynolds commentedEnded up being a lil more involved but looks good to me now
http://drupal.org/cvs?commit=298942