INSERT INTO public.core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('XREGSRC','registry_entity_search','SREGLE','searchRegistryEntries',NULL,'registry/list','registry','Search registry entity','EXE',NULL,1,false,false,NULL);

INSERT INTO public.core_user_roles (id, role_name,hidden) VALUES
	(15, 'Registry',0); 

INSERT INTO public.core_user_role_has_permission (role_id,permission_code) VALUES
	 (15,'PREGLST'),
	 (15,'SREGLE'),
	 (15,'SREGLW'),
	 (15,'BREGADD'),
	 (15,'BREGBAC'),
	 (15,'XREGUPD'),
	 (15,'MREG');
INSERT INTO public.core_user_role_has_permission (role_id,permission_code) VALUES
	 (15,'BREGEDT'),
	 (15,'XREGLST'),
	 (15,'BREGSAV'),
	 (15,'BREGDEL'),
     (15,'XREGSRC'),
	 (15,'XREGADD'),
	 (15,'XREGDEL');


