civicrm / org.civicrm.volunteer

CiviVolunteer extension.
40 stars 64 forks source link

Change the permissions to access Volunteer tab in CiviEvent #524

Closed andyburnsco closed 5 years ago

andyburnsco commented 5 years ago

I have found out that the Volunteer tab within CiviEvent needs 'edit_all_events' permission. However, I do not want people editing events they did not create. I also think it is too restrictive of a permission to set. If I am in CiviEvent configuration, I should be able to configure an volunteer project within it. So _accesscivievent or create volunteer projects I think would be more appropriate.

Where in the code could I find and adjust this permission? I'm looking here https://github.com/civicrm/org.civicrm.volunteer/blob/master/volunteer.php but have not found it.

I do have permissions set so this same user role can create and manage civivolunteer projects but it would be best if they were created within the event as the associated entity.

Relevant CiviEvent Permissions:

CiviEvent: access CiviEvent
CiviEvent: edit event participants

Relevant CiviVolunteer Permissions

CiviVolunteer: edit own volunteer projects
CiviVolunteer: create volunteer projects
CiviVolunteer: edit volunteer project relationships

With these, the user get permission denied: enter image description here

rTRgb

andyburnsco commented 5 years ago

Resolved: https://civicrm.stackexchange.com/a/33460/2629