Commit Graph
9 Commits
Author SHA1 Message Date
Romain Derie ab2adbdc72 [FIX] web_editor, *: allow internal user to upload unsplash image
* web_unsplash, website_forum

With [1], the access errors when a portal user were using the media
dialog got fixed. It also came with the unsplash capability for portal
user in the media dialog.

Still, there was a remaining problematic point: an internal user can't
upload an unsplash image in the backend through the media dialog. It
doesn't really make sense for an internal user to have less right than
the portal user.

This commit corrects that part.

Note that only unsplash images were problematic, not regular uploaded
image as the difference was that unsplash images attachment are saved
with an `url` property, which was triggering due to [2].

Finally, it was chosen to make that "bypass" more robust and opt in, so
forum and unsplash are allowing their use cases to go through, it's not
done in a generic way anymore.

Also fixing a small issue about the res_id not being sent when editing a
forum post, because it was assuming that the URL would end with the ID
which is not the case when you edit your answer.

[1]: https://github.com/odoo/odoo/commit/e10493711879c7f0cc8832db3f1936c622ea605c
[2]: https://github.com/odoo/odoo/commit/bfffe39f1376a56226572295b945a2cc73ba50ce

task-3007844

closes odoo/odoo#103138

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-10-12 10:34:58 +02:00
c8c8eb3d56 [IMP] website_forum, *: revamp design
* web_editor, website_profile

Part of https://github.com/odoo/odoo/pull/35749
task-2024197

Co-authored-by: Jérémy Kersten <jke@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
Co-authored-by: fja-odoo <fja@odoo.com>
2019-10-01 16:52:20 +00:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Thibault Delavallée 67ef7ba855 [IMP] website_blog: moved res_users inheritance into its own file, and added
the field in the view.
Also added some fixes in the messag_post hwen creating an answer.

bzr revid: tde@openerp.com-20140410101658-a1o5h3g5ehlg0e8t
2014-04-10 12:16:58 +02:00
Thibault Delavallée 4d41e36a91 [IMP] website_forum: cleaning before merging
- cleaned models, removing unnecessary fields + removed history feature of posts + removed
unnecessary override of mail.message and ir_http + renamed some fields (like badges -> badge_ids
to be more coherent with openerp naming)
- updated views accordingly
- cleaned demo data to lessen the diff

bzr revid: tde@openerp.com-20140409165059-36zc06f0to3q4qfu
2014-04-09 18:50:59 +02:00
Turkesh Patel (Open ERP) 46b164ea2e [IMP] improved code to handle error when user email address is not given
bzr revid: tpa@tinyerp.com-20140402092549-vrvchbmlpkaq4p80
2014-04-02 14:55:49 +05:30
Turkesh Patel (Open ERP) 283af4b6e5 [MRG] merged branch with improvements for assigning badges on running challange,improved some badge data.
bzr revid: tpa@tinyerp.com-20140321091924-mc3acnpx66oar555
2014-03-21 14:49:24 +05:30
Mantavya Gajjar ff29b7b42a [IMP]: improve licance and rename file forum -> website_forum
bzr revid: mga@tinyerp.com-20140222180220-e55rw4hf42iduyl4
2014-02-22 23:32:20 +05:30
Turkesh Patel (Open ERP) d743ac0a83 [ADD] website_forum for question and answer
bzr revid: tpa@tinyerp.com-20140221131608-e37a88h2u8ljkomr
2014-02-21 18:46:08 +05:30