@library.global_function
def user_is_curator(group, userprofile):
 return group.curators.filter(id=userprofile.id).exists()

@ library . global_function def user_is_curator ( group , userprofile ) : return group . curators . filter ( id = userprofile . id ) . exists ( )
check if a user is curator in the specific group .