Red Hat Bugzilla – Bug 485748
Feature Request -- Ability to hide format button through the prefs file
Last modified: 2015-01-04 18:36:37 EST
Description of problem:
I'd like the ability to be able to shown/hide the prefs file. I don't want to give the users the ability to format tokens if for some reason they know there ldap user name and password.
I'm attaching a diff off esc.js that adds this functionatality. I.e. it adds support for esc.hide.format where the parameter is yes. Setting it to any other text, including no, or not having the pref set enables the format button as is the default today.
I'd also like to add the modified esc.js file, but I only seem to be able to add one attachment.
Created attachment 332062 [details]
Diff of orginal esc.js to proposed esc.js that adds the option to hide the format button
Diff of the original esc.js to the modified one that adds this functionality. Not I used the source formatting that was already in the file instead of the posted one to keep it consistent. Namely around formatting an if statement.
Created attachment 332063 [details]
Modified ESC.js file that adds functionality to hide the format button
Thanks. Will take a look!
Created attachment 333404 [details]
Patch to quickly implement the hide format functionality.
Without looking at the original patches , I implemented this patch to provide this functionality.
Created attachment 333405 [details]
Same patch with more context.
attachment (id=333405) +mharmsen
Checking in ESC.js;
/cvs/dirsec/esc/src/app/xul/esc/chrome/content/esc/ESC.js,v <-- ESC.js
new revision: 1.20; previous revision: 1.19
This feature can be operated by setting the following:
Have it set to "no" to have ESC show the Format button as normal.
Note: This parameter also suppresses the "Format" menu item that shows up in the pop up menu for each token.