[Flow] Dynamically create Roles in Flow 3.0-beta1
Beat Guggisberg
beat.guggisberg at eglionline.ch
Fri May 8 08:49:52 CEST 2015
Hi
Im not sure how it works in Flow v3, but in flow 2.3 there is TYPO3\Flow\Command\DoctrineCommandController - afterDatabaseMigration, that is only called after a doctrine:migration. I use that to recreate my Flow-Apps Overview from settings after a upgrade.
Maybe you could do it on that signal.
Regards
Beat
Am Freitag, 08. Mai 2015 07:12 CEST, Sascha Reule <mail at sascha-reule.de> schrieb:
Hello everybody,
I'm currently playing around with Flow 3.0-beta1 and specially its refactored security framework.
Now I'm trying to determine if I could upgrade an existing project from 2.3.
Prior to Flow 3.0 there was a PolicyService in TYPO3\Flow\Security\Policy with the ability to create new Roles dynamically (via policyService->createRole('myNewRole') which adds the new Role to datebase).
I'm using this method because the project contains an administrative user management backend where we can add new users and roles (and of course assigning this new roles to users).
How can I do this in Flow 3.0?
I've found the signal 'emitRolesInitialized()' in the new PolicyService where I could hook into the bootstrapping process of Roles initialization.
But with this approach I have to persist all my custom and dynamically created Roles in an own Model and hook into the framework process on every request... best practise?!
Anyone has any idea for this?
Thanks!
Sascha
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
--
Egli's frische Küchenkräuter AG
Beat Guggisberg
Informatik
Riedeggweg 70c
CH-3020 Riedbach
direkt: +41 31 926 66 47
Zentrale: +41 31 926 66 66
Fax: +41 31 926 66 77
beat.guggisberg at eglionline.ch
www.eglionline.ch
More information about the Flow
mailing list