With the recent change of Room and Timeslot fields #1668908: Replace User reference, Nodereference with References, Vertical session schedule view, the field permission are now gone for these 2 fields. To be exact:
- Edit own value for field Room
- Edit own value for field Time slot

I'm suppose to continue on #1661620: Authenticated Users Cannot Create BoFs Regardless of Permission Settings but those 2 permissions are needed in order for an authenticated user to create a bof/session.
For sessions, these fields should be only available to session organizers while in bof, these should be available for authenticated users.
So, I'm not quite sure how to handle this. My options are:
- create a new permission for each field per node type
- keep session organizers to add/edit the rooms and timeslot because there is already a permission called "Schedule a BoF Session" and "Schedule a Session". But then the bof wouldn't be self managed by users

Thoughts?

Comments

primerg’s picture

Issue tags: +da_drupalcon

tagging

twardnw’s picture

Issue tags: -da_drupalcon

BoFs do not need to be moderated like sessions, set up the permissions for Authenticated users to be able to 'Create own value for field Room/Time slot'. We don't want them to be able to go back later and edit it.

twardnw’s picture

Issue tags: +da_drupalcon

d'oh, my comment removed the tag

primerg’s picture

Status: Active » Needs review
StatusFileSize
new9.58 KB

in this patch
- add field permission level for room and time slot
- assign appropriate permissions
- change the condition in creating sessions from "edit own field_x" to "create own field_"

primerg’s picture

StatusFileSize
new9.57 KB

the permission "create own" is wrong. re-patch

saltednut’s picture

#5 applies clean to the da_drupalcon sandbox and I'm seeing the permissions set on the field level that Authenticated users are able set 'Create own value' for field_session_room & field_session_slot

sheldonkreger’s picture

StatusFileSize
new85.07 KB

This applies clean to the sandbox.

Field level permissions for field_session_slot and Room are listed on the permissions settings area. Authenticated users can create their own value and view other's values. See image below.

From left to right: Anon, Authenticated, Administrator, Conference Administrator, Session Organizer.

saltednut’s picture

Status: Needs review » Reviewed & tested by the community
ezra-g’s picture

Status: Reviewed & tested by the community » Needs work

This still refers to a non-existent "conference administrator" role.

twardnw’s picture

StatusFileSize
new3.93 KB

Here is a patch that captures these permissions (and no conference admin)

twardnw’s picture

Status: Needs work » Needs review

bah, status update

mrconnerton’s picture

Issue summary: View changes
Status: Needs review » Active
Related issues: +#2364505: Consider using defaultconfig for some features, +#2374405: Permissions in COD

I believe we are looking to pull permissions out of features and have them set either with defaultconfig or via the install profile / module enables.

mrconnerton’s picture

Issue tags: +SprintWeekend2015
japerry’s picture

Status: Active » Fixed

This old issue is fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.