Remove gear page edit button for OEM customer system Admin?

  • 2
  • Question
  • Updated 4 years ago
  • Answered
We've just deployed Skuid to an OEM customer, and applied the 'Skuid Page Viewer' permission set to all users, incl the Administrator. We would prefer them to not be able to edit our Skuid pages (at least in the early stages) ( so no one gets the builder permission set)

However, the edit/gear button is still showing for the Administrator, and he's been able to click and edit the page.



Unfortunately its too late to apply the apex class & trigger outlined at the bottom here http://help.skuidify.com/m/11217/l/121145-packaging-your-skuid-pages as the app has already passed sec review and we're technically not able to add another class in at this point...

Any suggestions as to how to prevent the admin from seeing this button?

Thanks. 
Photo of Greg Jarrett

Greg Jarrett

  • 3,496 Points 3k badge 2x thumb

Posted 4 years ago

  • 2
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
The Edit Page button appears if the running user has Edit permissions on the skuid Page object, so the reason it's showing up is that your System Admin user must have Edit rights on the Page object. Ideally you could adapt the Profile that your System Admin gets, but this is not always possible.

One thing you can do is to hide the Edit Page DOM element after the page loads, by adding the following JavaScript to your Page(s):

(function(skuid){	
   var $ = skuid.$;
   $(function(){
      $('#skuidEditBtnContainer').hide();
   });
})(skuid);

Regarding adding a Class and Trigger to your app post-Security Review, technically you can do this no problem --- just upload a new version of your package, and once it's on AppExchange, just click "Start Review" on that version. You'll walk through the Security Review wizard (8 steps or whatever it is), and at the end of it, your new version will be automatically approved, instantaneously --- no more money, no more lengthy review by the SFDC Security team. Once you've passed the first time, all subsequent Security Reviews are passed immediately and automatically.
Photo of Greg Jarrett

Greg Jarrett

  • 3,496 Points 3k badge 2x thumb
fantastic. Thanks Zach.
Photo of Glenn Elliott

Glenn Elliott, Champion

  • 7,738 Points 5k badge 2x thumb
Thanks gents. This is info my team will need in about three weeks' time, so nice to know in advance. :)