-
Notifications
You must be signed in to change notification settings - Fork 51
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
Issue with images in custom pages since enh/308-file-access #349
Comments
@luke- Yes, I can reproduce the bug when file is linked to It was done here #311. |
I have tested with:
The PR #350 fixes all cases except of one:
The normal user sees an image of the custom page but it should not be visible because the custom page is hidden for the user. if ($this->admin_only && !static::canSeeAdminOnlyContent($this->content->container)) {
return false;
} but the core method // Check global content visibility, private global content is visible for all users
if (empty($this->contentcontainer_id) && !Yii::$app->user->isGuest) {
return true;
} So the core PR solves the issue. |
@yurabakhtin |
Will be fixed with Custompages 1.10.9 & HumHub 1.16.3+ |
Dear devs,
First of all, thank you!!!
i updated to the most recent CustomPages module version today and noticed, that after clearing my browser-cache i am now not able to see any images in my custom pages anymore.
The developer console points me to (Error:401) failing requests to {humhub}/file/file/download?guid={fileGuid}&hash_sha1={hash}.
Those links are embedded in the Richtext pages we have and all of them now lead to this behaviour.
Looking into the database i observed that those files added through the Richtext-Editor don't have a content_id set, i wonder if thats the reason for them to deliver 401s after your latest changes.
In order to bring my images back to be displayed temporarily again, i replaced your recently changed "TemplateContentActiveRecord" and "TemplateInstance" classes back to the state tagged as v1.10.7 on my server - that's working.
Please tell me if i am doing something wrong in my custom pages, i am also happy to share more details if needed.
Best regards, Andreas
The text was updated successfully, but these errors were encountered: