GithubHelp home page GithubHelp logo

Permission/privilege transition about iris HOT 2 CLOSED

mnit-rtmc avatar mnit-rtmc commented on September 25, 2024
Permission/privilege transition

from iris.

Comments (2)

DougLau avatar DougLau commented on September 25, 2024

Since v5.43, a user's role has required a permission record to create new DMS messages. This should be documented better.

As a starting point:

INSERT INTO iris.permission (role, resource_n, access_n)
    SELECT name, 'dms', 4
    FROM iris.role
    WHERE enabled = true
    ON CONFLICT DO NOTHING;

This gives all roles full permission, but would need to be run again after new roles are created.

from iris.

gordonparikh avatar gordonparikh commented on September 25, 2024

Yeah I did something like that to get us working, it was easy enough to figure out given what I knew. I agree some additional documentation would be better, and a note in the release notes about that change (I see there is one about checking the DMS permission, but clarifying that it requires an additional step to configure would be good).

It would probably be ideal to figure out a way to approximately translate the existing privileges into the new permission system (at least in a "close enough" way) that can be added to a migrate script. It would require a little thought, but probably on par with the sign group -> hashtag transition. Maybe not a big priority until more things move over to the new system, but something to keep in mind. If you want some help with that, let us know.

from iris.

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.