order user roles and permissions (#1372)
This commit is contained in:
28
src/Model/PermissionSectionInterface.php
Normal file
28
src/Model/PermissionSectionInterface.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
interface PermissionSectionInterface
|
||||
{
|
||||
/**
|
||||
* Returns the section title (which will be translated).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle(): string;
|
||||
|
||||
/**
|
||||
* Returns whether the given permission is part of this section
|
||||
*
|
||||
* @param string $permission
|
||||
* @return bool
|
||||
*/
|
||||
public function filter(string $permission): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user