Giter VIP home page Giter VIP logo

Comments (7)

bugy avatar bugy commented on June 9, 2024 1

Hi @TheSteveBennett, if you want admin users to be able to see (and execute) the script, you have to give them access explicitly. You can use @admin_users group, to give an access to all admins at once

from script-server.

TheSteveBennett avatar TheSteveBennett commented on June 9, 2024

Do I have to edit the JSON file for the script or can I do that from the admin panel. If I can do that from the admin panel then what would prevent me from doing so?

from script-server.

bugy avatar bugy commented on June 9, 2024

You can edit it from the admin panel.
Of course, usually admins have extended access to scripts/server and can execute anything. In this case access settings is only to prevent unintended invocation of a script by an admin. E.g. if by a company policy, a script should be only executed by a Financial department. Then for admins, it will be obvious, that they shouldn't do it, since there is no access.
At least, that was my way of thinking about it, when I implemented this restriction :)

from script-server.

TheSteveBennett avatar TheSteveBennett commented on June 9, 2024

from script-server.

bugy avatar bugy commented on June 9, 2024

When I use the @admin_users and hit save, nothing happens

Could you try pressing "Enter" before pressing Save?

when I edit the json file directly the script disappears from the menu until I remove my changes

Please check logs/server.log file. Most probably there is missing comma in json file or smth similar

from script-server.

TheSteveBennett avatar TheSteveBennett commented on June 9, 2024

Brillant! That did it. Thank you.

When I use the @admin_users and hit save, nothing happens

Could you try pressing "Enter" before pressing Save?

when I edit the json file directly the script disappears from the menu until I remove my changes

Please check logs/server.log file. Most probably there is missing comma in json file or smth similar

from script-server.

bugy avatar bugy commented on June 9, 2024

I'm glad it worked :)

from script-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.