Skip to content

Conversation

@dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented Jan 22, 2020

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Restrict LogModelView permissions

TEST PLAN

Tested that users don't have access to the View and Api through LogRestApi

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@dpgaspar dpgaspar changed the title [log] Only Admin's have log model view permissions [log] fix, Only Admin's have log model view permissions Jan 22, 2020
@dpgaspar dpgaspar changed the title [log] fix, Only Admin's have log model view permissions [log] fix, log model view permissions Jan 22, 2020
@dpgaspar dpgaspar marked this pull request as ready for review January 22, 2020 18:12
self.assertTrue(
security_manager._is_admin_only(
security_manager.find_permission_view_menu("can_delete", "DatabaseView")
log_permissions = ["can_list", "can_show", "can_add", "can_edit", "can_delete"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, I think we don't want logs to be editable. I'd remove can_add, can_edit, and can_delete for all users.

Copy link
Member Author

@dpgaspar dpgaspar Jan 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! but that is being handled on #8960. I would merge #8960 first then on the solution found, change this PR, or merge this and then make the change on #8960

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's merged!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, works for me.

@dpgaspar dpgaspar changed the title [log] fix, log model view permissions [WiP] [log] fix, log model view permissions Jan 23, 2020
@dpgaspar dpgaspar changed the title [WiP] [log] fix, log model view permissions [log] fix, log model view permissions Jan 23, 2020
@dpgaspar dpgaspar changed the title [log] fix, log model view permissions [WiP] [log] fix, log model view permissions Jan 23, 2020
@dpgaspar dpgaspar changed the title [WiP] [log] fix, log model view permissions [log] fix, log model view permissions Jan 24, 2020
@pull-request-size pull-request-size bot added size/L and removed size/S labels Jan 24, 2020
@dpgaspar dpgaspar merged commit 1f21bf8 into apache:master Jan 26, 2020
@dpgaspar dpgaspar deleted the fix/log-view-permissions branch January 26, 2020 12:16
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 First shipped in 0.36.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 0.36.0 First shipped in 0.36.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants