hide the “Admin” button for moderators in buddypress groups


I'de like to hide the “Admin” button for moderators but display it for admins within buddypress groups.
I'm not a coder but i've found a recent tweak on the web that could solve my problem.
I've added it to my theme's function.php as mentionned but it does not work...

Here is the tweak link :

Does someone knows why it does not work ?

Thanks in advance.