users should be able to star others maps
This commit is contained in:
parent
69cff163dc
commit
919532af81
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class MapPolicy < ApplicationPolicy
|
||||||
end
|
end
|
||||||
|
|
||||||
def unstar?
|
def unstar?
|
||||||
user.present? && record.user == user
|
user.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def screenshot?
|
def screenshot?
|
||||||
|
|
Loading…
Add table
Reference in a new issue