Make module readonly for all including admin

Hi guys,

I am looking for a way to make my module Readonly for all the users including System Admins.

I had a look at SugarACLAdminOnly strategy and used it but it only worked for regular users as I understood that ACLs applied only to regular users and not system admins.

Is there any other standard way other than

a) Make each and every fields in vardef as readonly (which is time taking)

b) Overriding the record or create controller

Please let me know.

Regards.

  • The solution is pretty easy:

    • Remove all the buttons from record view.
    • Remove all buttons actions from recordlist view.
    • Create the controller custom/modules/<Module>/clients/base/views/record/record.js and implement the method handleEdit this way:

    handleEdit: function(e, cell) {
    },

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada