Updated comments
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6c6b37000a
commit
340f8b73a5
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ class Group extends SnipeModel
|
|||
*/
|
||||
public function decodePermissions()
|
||||
{
|
||||
// Set default to empty JSON if the value is null
|
||||
// If the permissions are an array, convert it to JSON
|
||||
if (is_array($this->permissions)) {
|
||||
$this->permissions = json_encode($this->permissions);
|
||||
}
|
||||
|
|
|
@ -755,7 +755,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
*/
|
||||
public function decodePermissions()
|
||||
{
|
||||
// Set default to empty JSON if the value is null
|
||||
// If the permissions are an array, convert it to JSON
|
||||
if (is_array($this->permissions)) {
|
||||
$this->permissions = json_encode($this->permissions);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue