Are you trying to provide/limit access to the script editor on Published or Unpublished application?
By default you are not supposed to access the script editor on Published Application. You have to duplicate the app and edit it in the Unpublished version available in the user personal work space.
Hope this help!
Bastien Laugiero If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.