Fixed missing permission
This commit is contained in:
parent
1ac7c112d4
commit
d549e0c4c5
@ -1668,7 +1668,7 @@ inline ssize_t count_characters(const std::string& in) {
|
|||||||
* 3. Apply changed, test for advanced requirements like channel name etc
|
* 3. Apply changed, test for advanced requirements like channel name etc
|
||||||
* 4. notify everyone
|
* 4. notify everyone
|
||||||
*/
|
*/
|
||||||
CommandResult ConnectedClient::handleCommandChannelEdit(Command &cmd) {
|
CommandResult ConnectedClient:handleCommandChannelEdit(Command &cmd) {
|
||||||
CMD_RESET_IDLE;
|
CMD_RESET_IDLE;
|
||||||
CMD_CHK_AND_INC_FLOOD_POINTS(25);
|
CMD_CHK_AND_INC_FLOOD_POINTS(25);
|
||||||
|
|
||||||
@ -1692,6 +1692,8 @@ CommandResult ConnectedClient::handleCommandChannelEdit(Command &cmd) {
|
|||||||
bool target_channel_type_changed = false;
|
bool target_channel_type_changed = false;
|
||||||
ChannelType::ChannelType target_channel_type = channel->channelType();
|
ChannelType::ChannelType target_channel_type = channel->channelType();
|
||||||
CHANNEL_PERM_TEST_INIT;
|
CHANNEL_PERM_TEST_INIT;
|
||||||
|
CHANNEL_PERMISSION_TEST(permission::i_channel_modify_power, permission::i_channel_needed_modify_power, channel, true);
|
||||||
|
|
||||||
for (const auto &key : cmd[0].keys()) {
|
for (const auto &key : cmd[0].keys()) {
|
||||||
if(key == "cid")
|
if(key == "cid")
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user