Skip to content

Commit 92991d5

Browse files
committed
Fixed permission in remote api for sites_database_get_all_by_user
1 parent e0566d4 commit 92991d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,7 @@ public function get_function_list($session_id)
25162516
public function sites_database_get_all_by_user($session_id, $client_id)
25172517
{
25182518
global $app;
2519-
if(!$this->checkPerm($session_id, 'sites_database_get_all_by_user')) {
2519+
if(!$this->checkPerm($session_id, 'sites_database_get')) {
25202520
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
25212521
return false;
25222522
}

0 commit comments

Comments
 (0)