Skip to content
Snippets Groups Projects
Commit 18fd7ffb authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Fixed bug when adding a publisher teacher

parent 58e50906
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,10 @@ class V1::UsersController < ApplicationController
# POST /v1/users/:id/add_teacher.json
def add_teacher
if @user.is_publisher?
if @user.submitter_request != "accepted"
@user.submitter_request = :accepted
@user.save
end
render status: :ok
elsif !approve_params.to_s.blank?
if approve_params
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment