Git Product home page Git Product logo

Comments (4)

linear avatar linear commented on June 1, 2024

PR-958 platformAppApiKey "Non permissible resource"

from chatwoot.

sojan-official avatar sojan-official commented on June 1, 2024

ref : #2548 (comment)

from chatwoot.

K4thos avatar K4thos commented on June 1, 2024

Thank you @sojan-official, though I believe there might still be an issue.

Steps to reproduce:

  1. Verified that there is only one platform with the ID: 1, for which I have an access key. And one account with ID: 1.

  2. Executed the script from the linked message:
    irb(main):001:0> PlatformAppPermissible.create!(platform_app: PlatformApp.find(1), permissible: Account.find(1))
    =>
    #<PlatformAppPermissible:0x00007f54830515e8
    id: 1,
    platform_app_id: 1,
    permissible_type: "Account",
    permissible_id: 1,
    created_at: Tue, 27 Feb 2024 13:34:01.757912000 UTC +00:00,
    updated_at: Tue, 27 Feb 2024 13:34:01.757912000 UTC +00:00>

  3. Created a new user in the super_admin dashboard, under the Users section (user id: 15), and added him to Account Users (account id: 1). This new user can be correctly retrieved via an API call that lists all Account Users:
    {"id":15,"account_id":1,"user_id":15,"role":"agent","inviter_id":null,"created_at":"2024-02-27T14:32:59.191Z","updated_at":"2024-02-27T14:32:59.191Z","active_at":null,"availability":"online","auto_offline":true}

  4. However, I am still encountering the same issue when attempting to retrieve the user details via an API call using platform app 1 access key:
    curl -X GET '$host/platform/api/v1/users/15' -H 'Content-Type: application/json' -H 'api_access_token: $token'
    {"error":"Non permissible resource"}

from chatwoot.

github-actions avatar github-actions commented on June 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from chatwoot.

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.