Added entities and properties for some future features.

This commit is contained in:
Jan Böhmer 2019-08-12 15:47:57 +02:00
parent bcdba8b3e0
commit 7826e3d2ad
49 changed files with 1477 additions and 362 deletions

View file

@ -29,8 +29,8 @@
namespace App\Security\EntityListeners;
use App\Entity\Base\DBElement;
use App\Security\Annotations\ColumnSecurity;
use App\Entity\DBElement;
use Doctrine\Common\Annotations\Reader;
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
use Doctrine\ORM\Event\PreUpdateEventArgs;

View file

@ -29,7 +29,8 @@
namespace App\Security\Interfaces;
use App\Entity\PermissionsEmbed;
use App\Entity\UserSystem\PermissionsEmbed;
interface HasPermissionsInterface
{

View file

@ -32,8 +32,8 @@
namespace App\Security\Voter;
use App\Entity\Attachment;
use App\Entity\User;
use App\Entity\Attachments\Attachment;
use App\Entity\UserSystem\User;
class AttachmentVoter extends ExtendedVoter
{

View file

@ -29,7 +29,7 @@
namespace App\Security\Voter;
use App\Entity\User;
use App\Entity\UserSystem\User;
use App\Services\PermissionResolver;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;

View file

@ -2,8 +2,8 @@
namespace App\Security\Voter;
use App\Entity\Part;
use App\Entity\User;
use App\Entity\Parts\Part;
use App\Entity\UserSystem\User;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
/**

View file

@ -32,14 +32,14 @@
namespace App\Security\Voter;
use App\Entity\AttachmentType;
use App\Entity\Category;
use App\Entity\Device;
use App\Entity\Footprint;
use App\Entity\Manufacturer;
use App\Entity\Storelocation;
use App\Entity\Supplier;
use App\Entity\User;
use App\Entity\Attachments\AttachmentType;
use App\Entity\Device\Device;
use App\Entity\Parts\Category;
use App\Entity\Parts\Footprint;
use App\Entity\Parts\Manufacturer;
use App\Entity\Parts\Storelocation;
use App\Entity\Parts\Supplier;
use App\Entity\UserSystem\User;
class StructureVoter extends ExtendedVoter
{

View file

@ -29,7 +29,7 @@
namespace App\Security\Voter;
use App\Entity\User;
use App\Entity\UserSystem\User;
class UserVoter extends ExtendedVoter
{