Managing admin permissions for custom local plugins

Yes you are right! It needs to be under functions folder!