Skip to content

Instantly share code, notes, and snippets.

@mrkurt
Created April 21, 2009 22:23
Show Gist options
  • Save mrkurt/99432 to your computer and use it in GitHub Desktop.
Save mrkurt/99432 to your computer and use it in GitHub Desktop.
require MT::Association;
require MT::Role;
my @roles = MT::Role->load({}, { join => MT::Association->join_on('role_id', { author_id => $user->id }) });
my $security_groups = join(',', keys( %{{ map { uri_escape($_->name) => 0 } @roles }} ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment