Skip to content

Commit

Permalink
cms_info: use compute_sudo for urls
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Feb 6, 2025
1 parent e00b7a1 commit 4a6fbac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cms_info/models/cms_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,22 @@ def cms_after_delete_url(self):
url = fields.Char(
string="URL",
compute="_compute_cms_url",
compute_sudo=True,
)
cms_edit_url = fields.Char(
string="CMS edit URL",
compute="_compute_cms_url",
compute_sudo=True,
)
cms_delete_url = fields.Char(
string="CMS delete URL",
compute="_compute_cms_url",
compute_sudo=True,
)
cms_delete_confirm_url = fields.Char(
string="CMS delete confirm URL",
compute="_compute_cms_url",
compute_sudo=True,
)

def _compute_cms_url(self):
Expand Down

0 comments on commit 4a6fbac

Please sign in to comment.