AnsweredAssumed Answered

Alter $sugar_config on a per session/user basis.

Question asked by Steve Cox on Feb 10, 2015
Latest reply on Feb 11, 2015 by Rolustech Rolustech
Sugar Pro v6.2 and v7.5

Hi,

I'm looking for a more elegant way to alter $sugar_config elements on a per user basis (that will be permanent or last for the session).


The particular items I'm looking to change are:

list_report_max_per_page
and
resource_management

So that I can limit the rows in a report page to '20' and the max number of records returned in a report to '1000' for the majority of users. I can identify these users users by having them as not members of a more privileged role.

(I'm assuming that the resourse_management additional limits are the way to handle the maximum number of returned records - if not, I guess I'll have to create a custom sugar_config setting and refer to that in  customized non-upgrade-safe report code.

Any suggestions on how best to do this?

Outcomes