def get_user
        if params[:id] == "current"
          raise ApplicationController::UNAUTHORIZED_ERROR if @auth_user.nil?
          params[:id] = @auth_user.uuid
        end
        @user = find_object(User, params[:id])
        authorize_for!(@user)
        return @user
      end
def get_user
        if params[:id] == "current"
          raise ApplicationController::UNAUTHORIZED_ERROR if @auth_user.nil?
          params[:id] = @auth_user.uuid
        end
        @user = find_object(User, params[:id])
        authorize_for!(@user)
        return @user
      end
This overrides the application controller's get_user method. Since
 resource object of this users controller is user, the id is
 specified in :id param.