-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK:
NeosUserRole
enum to reduce amount of magic strings
- Loading branch information
1 parent
e339da0
commit 5eccf4b
Showing
5 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Neos\Domain\Model; | ||
|
||
use Neos\Neos\Domain\Service\WorkspaceService; | ||
|
||
/** | ||
* ... | ||
* | ||
* @api | ||
*/ | ||
enum NeosUserRole : string | ||
{ | ||
case EVERYBODY = 'Neos.Flow:Everybody'; | ||
case AUTHENTICATED_USER = 'Neos.Flow:AuthenticatedUser'; | ||
case ADMINISTRATOR = 'Neos.Neos:Administrator'; | ||
case ABSTRACT_EDITOR = 'Neos.Neos:AbstractEditor'; | ||
case EDITOR = 'Neos.Neos:Editor'; | ||
case LIVE_PUBLISHER = 'Neos.Neos:LivePublisher'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters