[ADD]search is_member is_admin

This commit is contained in:
2021-02-01 14:50:56 +08:00
parent c6269f44ee
commit 152e301bf3
12 changed files with 51 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ class Organizations::OrganizationsController < Organizations::BaseController
end
def show
@is_admin = can_edit_org?
@is_member = @organization.is_member?(current_user.id)
end
def create