Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created August 16, 2020 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/927f0c154c71f396cb46b9ad40bf44b1 to your computer and use it in GitHub Desktop.
Save iaindooley/927f0c154c71f396cb46b9ad40bf44b1 to your computer and use it in GitHub Desktop.
Prevent non-admin moves
function preventNonAdminMoves(notification)
{
var notif = new Notification(notification);
var moved = notif.movedCard();
if(!notif.member().isAdminOfBoard(notif.board()))
{
moved.moveToList(notif.listBefore(),"top");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment