Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Cannot query authors via Graphql on Craft Team license #15187

Closed
ajoliveau opened this issue Jun 12, 2024 · 3 comments
Closed

[5.x]: Cannot query authors via Graphql on Craft Team license #15187

ajoliveau opened this issue Jun 12, 2024 · 3 comments
Assignees
Labels

Comments

@ajoliveau
Copy link

What happened?

Description

When using Craft with the Team license, you have full access to the whole multi-users feature set, including assigning one (or multiple) authors, but the authorId and author graphql attributes are not available in the schema.

Steps to reproduce

  1. Use the Team license
  2. Check the Graphql Schema (at /admin/graphql/schemas/public) and note you don't see the options to query Users
  3. Check graphiql and see you have no authors field anywhere
  4. Switch to the Pro license
  5. Check that you can see and check the Users query options
    image
  6. Confirm you can query Author information { entries { authorId } }
  7. Bonus : Switch back to the Team license, and even though you can't see the Users query options in the schema, you still can query users

Expected behavior

I don't actually know. According to the pricing page, Team and Pro licenses should give the same permissions related to users (but Pro as unlimited users) ?
But according to the documentation some authors functionality like "Choose the entry’s Authors" is gated to the Pro license ? But I guess that's just old doc that wasn't updated when the Team plan was introduced

Actual behavior

With a Team license, I'm not able to query authors for entries using Graphql

Craft CMS version

5.1.9

PHP version

8.2.19

Operating system and version

Linux 6.9

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

 Name                Handle              Package Name                Version        Installed  Enabled
    ------------------  ------------------  --------------------------  -------------  ---------  -------
    Expanded Singles    expanded-singles    verbb/expanded-singles      3.0.0          Yes        Yes    
    Field Manager       field-manager       verbb/field-manager         4.0.0          Yes        Yes    
    Formie              formie              verbb/formie                3.0.0-beta.14  Yes        Yes    
    Navigation          navigation          verbb/navigation            3.0.0          Yes        Yes    
    Neo                 neo                 spicyweb/craft-neo          5.0.1          Yes        Yes    
    Redactor            redactor            craftcms/redactor           4.0.0          Yes        Yes    
    SEOmatic            seomatic            nystudio107/craft-seomatic  5.0.3          Yes        Yes    
    Translations admin  translations-admin  mutation/translate          4.0.2          Yes        Yes    
@i-just
Copy link
Contributor

i-just commented Jun 13, 2024

Hi, thanks for reporting!

According to the pricing page, Team and Pro licenses should give the same permissions related to users (but Pro as unlimited users) ?

That’s correct. It’s an oversight, and I raised a PR for it.

But according to the documentation some authors functionality like "Choose the entry’s Authors" is gated to the Pro license ? But I guess that's just old doc that wasn't updated when the Team plan was introduced

And you’re right here, too. The docs need to be updated. I raised an issue for this in the docs repo.

@brandonkelly
Copy link
Member

Craft 5.2.1 is out with that fix to GraphQL schemas. Thanks again!

@ajoliveau
Copy link
Author

Good to know, thank you for the quick fix !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants