@cli_app.command('security-cleanup')
@click.option('--app', default='app', help='Your application init directory (package)')
@click.option('--appbuilder', default='appbuilder', help='your AppBuilder object')
def security_cleanup(app, appbuilder):
 _appbuilder = import_application(app, appbuilder)
 _appbuilder.security_cleanup()
 click.echo(click.style('Finished security cleanup', fg='green'))

@ cli_app . command ( 'security-cleanup' ) @ click . option ( '--app' , default = 'app' , help = 'Your application init directory (package)' ) @ click . option ( '--appbuilder' , default = 'appbuilder' , help = 'your AppBuilder object' ) def security_cleanup ( app , appbuilder ) : _appbuilder = import_application ( app , appbuilder ) _appbuilder . security_cleanup ( ) click . echo ( click . style ( 'Finished security cleanup' , fg = 'green' ) )
cleanup unused permissions from views and roles .