Giter Club home page Giter Club logo

Comments (8)

JanCizmar avatar JanCizmar commented on May 14, 2024

It seems like this happened due to refactoring of ApiHttpService which handled 403s before.

from tolgee-platform.

JanCizmar avatar JanCizmar commented on May 14, 2024

Also, it's a bug you are able to get to the project form when the server has probably disabled project creation. Isn't it?

from tolgee-platform.

cyyynthia avatar cyyynthia commented on May 14, 2024

Also, it's a bug you are able to get to the project form when the server has probably disabled project creation. Isn't it?

The button is available despite project creation being off, however it seems the API doesn't expose (yet?) the user's role, so I assumed it was to still let the administrator create projects in this configuration.

from tolgee-platform.

JanCizmar avatar JanCizmar commented on May 14, 2024

@stepan662 /api/public/configuration has userCanCreateOrganizations and userCanCreateProjects props

from tolgee-platform.

JanCizmar avatar JanCizmar commented on May 14, 2024

however it seems the API doesn't expose (yet?)

Hmm. Yeah. That also would be a problem.

from tolgee-platform.

cyyynthia avatar cyyynthia commented on May 14, 2024

Hmm. Yeah. That also would be a problem.

Exposing the user's role will be necessary for conditionally showing a link to the admin screen for #974, so doing it now to solve project/org creation issues doesn't sound too bad at all to me. A separate issue can be made for it I guess

from tolgee-platform.

JanCizmar avatar JanCizmar commented on May 14, 2024

Disabling of the project creation button is currently not what we want to do, since we want organization OWNER to be able to create an project in organization.

That's why I cannot just expose the user role and disable the button.

However, we are currently rebuilding the whole organization/user logic in billing branch, so every project will be owned by an Organization and so every user will have an organization. So it doesn't make sense to fix the project creation dialog, since the user-can-create-projects property will be useless later.

So I am going to solve all of this in billing branch, which will be hopefully merged next week.

Disclamer: Billing branch doesn't mean that you will have to pay for this features. We are just preparing there for huge changes related to enabling billing of the Cloud / on-premiss services.

from tolgee-platform.

JanCizmar avatar JanCizmar commented on May 14, 2024

This is now fixed, since all projects are part of an organizaton an server admin can create organizations ecent when userCanCreateOrganizations=false

from tolgee-platform.

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.