Skip to content

Commit 662971f

Browse files
committed
Merge branch 'feat-permissions-classes' of https://github.com/appwrite/sdk-generator into feat-tests-for-helper-classes
2 parents ae12a11 + 42ab58f commit 662971f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/php/src/Permission.php.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ class Permission
66
{
77
public static function read(string $role): string
88
{
9-
return "read('$role')";
9+
return "read("$role")";
1010
}
1111
public static function write(string $role): string
1212
{
13-
return "write('$role')";
13+
return "write("$role")";
1414
}
1515
public static function create(string $role): string
1616
{
17-
return "create('$role')";
17+
return "create("$role")";
1818
}
1919
public static function update(string $role): string
2020
{
21-
return "update('$role')";
21+
return "update("$role")";
2222
}
2323
public static function delete(string $role): string
2424
{
25-
return "delete('$role')";
25+
return "delete("$role")";
2626
}
2727
}

templates/php/src/Role.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Role
1616
{
1717
return 'users';
1818
}
19-
public static function guest(): string
19+
public static function guests(): string
2020
{
2121
return 'guests';
2222
}

0 commit comments

Comments
 (0)