emails: add show endpoint.

This commit is contained in:
evazion
2020-03-18 03:44:39 -05:00
parent f34f740c54
commit d211264239
3 changed files with 15 additions and 1 deletions

View File

@@ -2,6 +2,13 @@ class EmailsController < ApplicationController
before_action :member_only
respond_to :html, :xml, :json
def show
@user = User.find(params[:user_id])
check_privilege(@user)
respond_with(@user.email_address)
end
def edit
@user = User.find(params[:user_id])
check_privilege(@user)