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

Update README #49

Closed
wants to merge 1 commit into from
Closed

Update README #49

wants to merge 1 commit into from

Conversation

WebVPF
Copy link
Contributor

@WebVPF WebVPF commented Mar 8, 2024

Added instructions on how to check whether a user belongs to a group.

Method inGroup of the User class: https://github.com/wintercms/storm/blob/6855ef4280d2587367f6127a2bd56a89e727e490/src/Auth/Models/User.php#L376-L390

@WebVPF WebVPF closed this Mar 8, 2024
@LukeTowers
Copy link
Member

@WebVPF why did you close this?

@WebVPF
Copy link
Contributor Author

WebVPF commented Mar 9, 2024

@LukeTowers This doesn't work and throws an error 500:

Error: Call to a member function getKey() on string in /vendor/winter/storm/src/Auth/Models/User.php:384

@LukeTowers
Copy link
Member

It's expecting a Group instance, not a string key: * @param Group $group

@WebVPF WebVPF deleted the patch-1 branch March 10, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants