Download & Extend

Limit possible values in the "authored by" field

Project:Override Node Options
Version:6.x-1.10
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This module is great, but it would be really useful if I could limit which values were available to each role or user in the "authored by" field.

For example, a site has these four roles: Sports Editor, Sports Correspondent, Movies Editor and Movies Correspondent.

I want a in the Sports Editor role to be able to use the "authored by" field to post a blog as if it had been written by a user in the Sports Correspondent role, but I don't want him to be able to impersonate a Movies Editor, Movies Correspondent or another Sports Editor in the same way. Likewise, a Movies Editor should be able to post as a Movies Correspondent, but not as any of the other roles.

Thanks for any help you can give me.

Comments

#1

This probably belongs in a separate module: you could use hook_form_alter to source the user autocomplete from a different callback, and in that do some role checking.