diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 64da2e636..8e10de2d8 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2883,6 +2883,8 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { this._source = source; + this._parentalControlsManager = ParentalControlsManager.getDefault(); + this.actor.add_style_class_name('app-well-menu'); // Chain our visibility and lifecycle to that of the source @@ -2963,7 +2965,8 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { }); } - let canFavorite = global.settings.is_writable('favorite-apps'); + let canFavorite = global.settings.is_writable('favorite-apps') && + this._parentalControlsManager.shouldShowApp(this._source.app.app_info); if (canFavorite) { this._appendSeparator();