How do I give a specific user editing rights to a specific node?

前端 未结 5 2062
失恋的感觉
失恋的感觉 2021-02-06 05:36

How do I give a specific user editing rights to a specific node?

I have a user role named \"Student\". Multiple users have that role, only a few of them can edit a node

5条回答
  •  情深已故
    2021-02-06 06:34

    For sort of abnormal permissions stuff like this, I've always found that a small custom module is the way to go. General node access modules have to be general enough to be useful for a lot of different cases, which generally makes them sort of messy and confusing.

    For this specific one, you could create a module that implements hook_nodeapi and on $op==prepare, check the user's ID against your user reference and do a drupal_goto the access denied page if they don't match up.

提交回复
热议问题