I'm new in Rails, I'm doing tutorial by Hartl but I want to add sometimes something special from me to the code. I'm doing microposts right now and I want to add "delete" function to delete micropost, but I want this function to be visible only for admin and for user who made this micropost. Now I don't know how to do that, because when I want to setup `<% if current_user(micropost.user) && user.admin %>` I get an error `wrong number of arguments (given 1, expected 0)`.
In `session_helper.rb` I have function `def current_user` not `def current_user(micropost.user)` I know that but can I add somehow this micropost.user and get this done? Bellow all code:

`app/views/microposts/_micropost.html.erb`

```
<li id="micropost-<%= micropost.id %>">
  <%= link_to gravatar_for(micropost.user, size: 50), micropost.user %>
  <span class="user"><%= link_to micropost.user.name, micropost.user %></span>
  <span class="content"><%= micropost.content %></span>
  <span class="timestamp">
    Posted <%= time_ago_in_words(micropost.created_at) %> ago.
  </span>
  <% if current_user(micropost.user) && user.admin %>
   <%= link_to "delete", micropost, method: :delete,
                         data: { confirm: "You sure?" } %>
  <% end %>
</li>        

```

`app/helpers/session_helper.html.erb`

```
def current_user
  if (user_id = session[:user_id])
    @current_user ||= User.find_by(id: user_id)
  elsif (user_id = cookies.signed[:user_id])
    user = User.find_by(id: user_id)
    if user && user.authenticated?(:remember, cookies[:remember_token])
      log_in user
      @current_user = user
    end
  end
end    

```