Allow logic hook and/or controller to set values for fields the user doesn't otherwise have access to

Idea created by Francesca Shiekh on Jan 17, 2017
    Active
    Score30
    • Francesca Shiekh
    • Ishani Lad
    • abhishek bhardwaj
    • Brett Zufelt
    • YouAddOn Team
    • Sophie Peacock

    There are cases where the developer may need to set values to fields that the current user doesn't have access to.

    The Role denies write access but we want to set/reset defaults from code under certain conditions.

     

    The only workaround I have found is a logic hook that does a direct database update.

    I'd rather have a clear mechanism to say in a logic_hook or controller: "ignore ACL on this field and set it because I say so". 

     

    thanks,
    FrancescaS