'Copy actions/roles from library folder to an ldda (and its library_dataset).'

def _apply_library_folder_permissions_to_ldda(self, trans, library_folder, ldda):

    security_agent = trans.app.security_agent
    security_agent.copy_library_permissions(trans, library_folder, ldda)
    security_agent.copy_library_permissions(trans, library_folder, ldda.library_dataset)
    return security_agent.get_permissions(ldda)
