-
Notifications
You must be signed in to change notification settings - Fork 23
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
Missing find() method in ApiUser #184
Comments
@marc-farre |
@gevorgmansuryan Thanks. |
@marc-farre yep, let's ask for request |
Let's close this issue for now, I will reopen it if I think there is a real problem |
Reopening the issue, because now I understand what happens. When creating a new user using the Rest API POST The bug then occurs here: https://github.com/humhub/humhub/blob/e91a8ac1269a9b71f4f4d5bf602608dcb3ab1520/protected/humhub/modules/content/components/ContentContainerController.php#L164-L166 When fixing this issue, I think we should create a migration to repair the table, such as: UPDATE `contentcontainer`
SET `class` = 'humhub\\modules\\user\\models\\User'
WHERE `class` = 'humhub\\modules\\rest\\models\\ApiUser' |
@marc-farre I've tried to create user with rest, and |
Thanks for trying. When I find time, I'll try to investigate more and test on my side. |
I could not tell what creates this error in the log (see below), but since we have a
ApiUser::findOne()
method (see here), perhaps we could add afind()
method?I'm not sure...
The text was updated successfully, but these errors were encountered: