Project

General

Profile

Actions

Bug #4026

closed

[Workbench] "Move to project..." button should be displayed to an admin user even if the sub-project is in another user's Home project.

Added by Radhika Chippada over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
-
Target version:
Story points:
0.5

Subtasks 1 (0 open1 closed)

Task #4261: Review branch: 4026-project-move-adminResolvedRadhika Chippada10/20/2014Actions
Actions #1

Updated by Radhika Chippada over 9 years ago

apps/workbench/app/views/application/_title_and_buttons.html.erb might need revisiting.

Actions #2

Updated by Radhika Chippada over 9 years ago

  • Subject changed from "Move to project..." button is not displayed to an admin user if the project is not owned by the admin user. It should be displayed to admin users. to "Move to project..." button is not displayed to an admin user if the sub-project is in another user's Home project.
Actions #3

Updated by Ward Vandewege over 9 years ago

  • Subject changed from "Move to project..." button is not displayed to an admin user if the sub-project is in another user's Home project. to [Workbench] "Move to project..." button is not displayed to an admin user if the sub-project is in another user's Home project.
Actions #4

Updated by Ward Vandewege over 9 years ago

  • Target version changed from Bug Triage to Arvados Future Sprints
Actions #5

Updated by Tom Clegg over 9 years ago

Possible fix in 4026-admin-move-project c64623a

Actions #6

Updated by Ward Vandewege over 9 years ago

  • Target version changed from Arvados Future Sprints to 2014-10-29 sprint
Actions #7

Updated by Ward Vandewege over 9 years ago

  • Story points set to 0.5
Actions #8

Updated by Tom Clegg over 9 years ago

  • Subject changed from [Workbench] "Move to project..." button is not displayed to an admin user if the sub-project is in another user's Home project. to [Workbench] "Move to project..." button should be displayed to an admin user even if the sub-project is in another user's Home project.
Actions #9

Updated by Radhika Chippada over 9 years ago

  • Assigned To set to Radhika Chippada
Actions #10

Updated by Brett Smith over 9 years ago

Reviewing 2556bf9

It's possible to simplify this condition by saying if (ArvadosBase.find(@object.owner_uuid).writable_by.include?(current_user.uuid) rescue nil). We just added this last week, but it's great for simplifying permission checks like this: both User and Group return writable_by, and it always includes the requesting user's own UUID if they're an admin. So it's one line that covers all the same cases as this condition.

I'm happy for this branch to be merged with that change, or without if there's some reason it's not appropriate. Thanks.

Actions #11

Updated by Radhika Chippada over 9 years ago

  • Status changed from New to In Progress
Actions #12

Updated by Radhika Chippada over 9 years ago

  • Status changed from In Progress to Resolved

Applied in changeset arvados|commit:c6056f6f1bb99fa10bc2046266accc4a85f66aad.

Actions

Also available in: Atom PDF