INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('PMESS','herald_message','MHERALD','getObjects','','herald/message','herald','Permission to get messages','PAG','fas fa-paper-plane',1,false,false,NULL),
	 ('SHMLST','herald_message_list_view','PMESS','','','herald/message','herald','Permission to view message list section','SEC','',1,false,false,NULL),
	 ('XHMSGET','herald_message_list_get','SHMLST','getMessages','','herald/message','herald','Permission to get messages','EXE','',1,false,false,NULL),
	 ('SMBKEND','herald_message_backend_only','MHERALD','','','','herald','','SEC','',1,false,false,NULL),
	 ('XHMCRT','herald_message_create','SMBKEND','crtMessage','','herald/message','herald','Permission to create new message','EXE','',1,false,false,NULL),
	 ('MHERALD','herald',NULL,NULL,NULL,'herald','herald','Access to herald module','MOD','fas fa-envelope-open-text',800,false,false,NULL);

UPDATE public.core_permissions
	SET ord=900
	WHERE code='MHERALD';
