Skip to content

Commit

Permalink
15122 New option to make customizations available to users of selecte…
Browse files Browse the repository at this point in the history
…d sites

CMK-11911

Change-Id: Icef957e21b577efd3216afce361be7ba153e9593
  • Loading branch information
makanakoeln committed Jan 30, 2023
1 parent 04c0323 commit a08dcf8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .werks/15122
@@ -0,0 +1,21 @@
Title: New option to make customizations available to users of selected sites
Class: feature
Compatible: compat
Component: multisite
Date: 1674557899
Edition: cre
Knowledge: undoc
Level: 2
Version: 2.2.0i1

You can now make customized views, dashboards, etc. available for users on
selected sites.

Therefore new permissions like "Publish views to users of allowed sites" are
introduced and assigned to the "admin" role.
With this permission you can use the option "Make this view available for other
users" - "Publish to users of sites" on the "Edit" page of the customization.

Please note that the customizations will be available on the selected sites
after the next activation of changes for these sites.

8 changes: 7 additions & 1 deletion cmk/gui/pagetypes.py
Expand Up @@ -741,7 +741,7 @@ def declare_overriding_permissions(cls) -> None:
"publishing user has selected."
)
% title_lower,
defaults=["admin", "user"],
defaults=["admin"],
)
)

Expand Down Expand Up @@ -1405,6 +1405,12 @@ def PublishTo(
title=_("Publish to all users of sites"),
rows=15,
size=80,
help=_(
"Select sites the %s should be avalable on. It will "
"become available for all users of that sites on the "
"next activation of changes for the selected sites."
)
% type_title,
),
)
)
Expand Down
2 changes: 1 addition & 1 deletion cmk/gui/visuals/__init__.py
Expand Up @@ -229,7 +229,7 @@ def declare_visual_permissions(what: VisualTypeName, what_plural: str) -> None:
("Publish %s to users of selected sites") % what_plural,
_("Make %s visible and usable for users of sites the publishing user has selected.")
% what_plural,
["admin", "user"],
["admin"],
)

declare_permission(
Expand Down

0 comments on commit a08dcf8

Please sign in to comment.