Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
Translator: Local
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2016 at 13:18 UTC
Updated:
12 Feb 2016 at 08:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
edurenye commentedDone.
Comment #3
berdirThis function shouldn't exist. It duplicates logic of LocalTaskAccessControlHandler and overrides what we have there.
We already have a delete implementation there, which limits delete access to the administer permission.
Actually not fully convinced if we should keep that behavior or not. Maybe together with a warning message on the delete form?
But, we should definitely kill those old access functions/hooks and make sure all logic is covered by the access control handlers (Those should be in an AccessControl namespace btw, not Controller)
And whatever we do should be covered with explicit test coverage.
Comment #4
miro_dietikerYeah, not permissing deletes is usually a requirement by workflow driven processes. However, Drupal usually does not allow this limitation for admins.
Not sure how much we want to add coded limitations. I still want to review the whole user scenarios when the local translator is clean again and the previously reported bugs have been removed.
Comment #5
edurenye commentedMoved to LocalTaskAccessControlHandler.
Comment #6
berdirthis makes no sense, you already use $account above. It can't be not set at this point.
is that @todo ported over? I don't think we need this. It obviously needs to be refined when we introduce more features. We could say that about pretty much every line of code :)
lets clean up item here too.
Comment #7
edurenye commentedDone all the clean up.
Comment #8
berdirAs discussed, we can simplify the access control handlers a lot.
Comment #9
edurenye commentedDone and added a test.
Comment #11
berdirwhy this change?
Comment #12
miro_dietikerAlso please reroll, does not apply anymore.
Comment #13
edurenye commentedRebased and removed the unneeded change.
Comment #14
edurenye commentedRemoved the delete operation from LocalTaskListBuilder
Comment #15
edurenye commentedwrong name, sorry.
Comment #16
miro_dietikerYeah with the current permissions, this makes sense.
However, we should create a followup to offer a separate permission if a translator can unassign at all... except if we would want to cover this transition limitation only by advanced workflow module integration that can easily cover this case.
Comment #18
edurenye commentedI already created this issue #2656810: [meta] Add Assign/unassign permissions