Project

General

Profile

Actions

Bug #13650

closed

User with a wireguard permissions not able to edit peers/tunnels

Added by Andrey Hammer over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
WireGuard
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

User with "WebCfg - VPN: WireGuard" can't edit anything. On attemt to edit got redirect to wg/vpn_wg_tunnels.php.
Looks like issue with wireguard.inc.php:

These rules(and maybe other rules too)
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_tunnels_edit.php";
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_peers_edit.php";

should be:
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_tunnels_edit.php*";
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_peers_edit.php*";

Actions

Also available in: Atom PDF