Skip to content

Commit

Permalink
Merge pull request #12 from easypanel-io/develop
Browse files Browse the repository at this point in the history
Fixed problem when admin tries to create a service.
  • Loading branch information
mateuslacorte authored Jul 11, 2024
2 parents ffe6807 + 899369b commit e12024f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
3 changes: 1 addition & 2 deletions easypanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@ function ($table) {
} catch (\Exception $e) {
echo "Unable to create my_table: {$e->getMessage()}";
}
$clientId = $_SESSION['uid'] ?? throw new Exception('Client not logged in or not in client area.');
$client = Capsule::table('tblclients')
->where('id', $clientId)
->where('id', $params['userid'])
->first(['uuid']);
$clientId = $client->uuid;
$sdk = new EasyPanelSDK($params['configoption1'], $params['configoption2']);
Expand Down

0 comments on commit e12024f

Please sign in to comment.