From 60ed95fb63463e71d423d555f316f071900d8fb6 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 16 Oct 2019 21:11:54 +0200 Subject: [PATCH] Fixed some subscribe issues --- src/PermissionManager.cpp | 1 + src/PermissionManager.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PermissionManager.cpp b/src/PermissionManager.cpp index 2a6c095..2ea5e43 100644 --- a/src/PermissionManager.cpp +++ b/src/PermissionManager.cpp @@ -486,6 +486,7 @@ i_group_modify_power, b_channel_modify_maxfamilyclients, b_channel_modify_sortorder, b_channel_modify_needed_talk_power, + i_channel_permission_modify_power, b_channel_create_child, b_channel_create_permanent, b_channel_create_temporary, diff --git a/src/PermissionManager.h b/src/PermissionManager.h index 33018c8..8185f75 100644 --- a/src/PermissionManager.h +++ b/src/PermissionManager.h @@ -807,8 +807,8 @@ namespace ts { }; struct PermissionFlaggedValue { - PermissionValue value; - bool has_value; + PermissionValue value = permNotGranted; + bool has_value = false; }; static constexpr PermissionFlaggedValue empty_permission_flagged_value{0, false};