You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/tools/pstn-prefixes/edit.php
+4-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
# initialize user object
11
11
$Database = newDatabase_PDO;
12
12
$User = newUser ($Database);
13
-
$Admin = newAdmin ($Database);
13
+
$Admin = newAdmin ($Database, false);
14
14
$Tools = newTools ($Database);
15
15
$Result = newResult ();
16
16
@@ -20,6 +20,9 @@
20
20
# create csrf token
21
21
$csrf = $User->csrf_cookie ("create", "pstn");
22
22
23
+
# check permissions
24
+
if($Tools->check_prefix_permission ($User->user) < 3) { $Result->show("danger", _('You do not have permission to manage PSTN prefixes'), true, true); }
0 commit comments