Merged yd backend

Hi, guys! Please, approve anyone my request!
move the Group_permission class to controllers/models.rb