Can't disable "visible to user" database resource in custom interface

Support
  • I'm trying to disable visibility in custom interface for a database resource
    In the normal BAS interface everything is ok when i disable "visible to user" but when i upload the script for custom interface the database shows up. What am i doing wrong ?