Can a logic hook invoke admin rights?

The Assigned To field in our clients module is set to Read Only for the sales agent role because we don't want the agents to be able to change that field at all.  What I need to do is find a way during the creation of a new client to run a hook - or part of a hook - as the admin user to set the Assigned To field to the agent creating the new client.  Is this possible?

Thanks.

Jason

Parents
  • You might want to consider approaching the problem a slightly different way.

    Given that the creation screen is controlled by a different view than the one for the edit/view screen (Create vs. Record), you could leave the Assigned To field as editable, then modify the metadata for the RecordView to set that same field as readonly. That would allow the user to set an Assigned To value on creation, but not edit it after the fact.

Reply
  • You might want to consider approaching the problem a slightly different way.

    Given that the creation screen is controlled by a different view than the one for the edit/view screen (Create vs. Record), you could leave the Assigned To field as editable, then modify the metadata for the RecordView to set that same field as readonly. That would allow the user to set an Assigned To value on creation, but not edit it after the fact.

Children