Actions
Bug #13650
closedUser with a wireguard permissions not able to edit peers/tunnels
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*";
Updated by Danilo Zrenjanin 5 months ago
- Status changed from New to Confirmed
I can confirm this behavior on the:
22.05-RELEASE (amd64) built on Wed Jun 22 18:56:13 UTC 2022 FreeBSD 12.3-STABLE
Wireguard version:
0.1.6_2
I could define new tunnels and peers. But couldn't edit the existing ones.
Updated by Christopher Cope 3 months ago
- Status changed from Confirmed to Pull Request Review
- Assignee set to Christopher Cope
Updated by Danilo Zrenjanin 3 months ago
It works as expected with the patch.
Tested the patch against:
WireGuard net 0.1.6_2
Updated by Christian McDonald 3 months ago
- Status changed from Pull Request Review to Closed
Updated by Christian McDonald 3 months ago
- Status changed from Closed to Resolved
Actions