New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map editing permissions initial #937
base: main
Are you sure you want to change the base?
Conversation
@@ -257,6 +257,11 @@ def after_create | |||
self.version = last.version + 1 | |||
end | |||
|
|||
def change_edit_permission editable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use def with parentheses when there are parameters.
@@ -257,6 +257,11 @@ def after_create | |||
self.version = last.version + 1 | |||
end | |||
|
|||
def change_edit_permission editable | |||
self.is_editable = editable | |||
self.save! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant self
detected.
Code Climate has analyzed commit 78980d7 and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@jywarren I'm starting with this. We still need some more details on how to put the toggle permission button on the map sidebar. @sashadev-sky shared some cool ideas #893 . If you could have a look at this and the issue as well! |
Codecov Report
@@ Coverage Diff @@
## main #937 +/- ##
==========================================
- Coverage 72.71% 68.29% -4.42%
==========================================
Files 35 35
Lines 1356 1369 +13
==========================================
- Hits 986 935 -51
- Misses 370 434 +64
|
closes #893