{"action":"opened","number":7134,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/7134","id":37102172,"html_url":"https://github.com/joomla/joomla-cms/pull/7134","diff_url":"https://github.com/joomla/joomla-cms/pull/7134.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/7134.patch","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/7134","number":7134,"state":"open","locked":false,"title":"Fix: User Admin with editstate permission cannot block/unblock users","user":{"login":"geejay101","id":12772074,"avatar_url":"https://avatars.githubusercontent.com/u/12772074?v=3","gravatar_id":"","url":"https://api.github.com/users/geejay101","html_url":"https://github.com/geejay101","followers_url":"https://api.github.com/users/geejay101/followers","following_url":"https://api.github.com/users/geejay101/following{/other_user}","gists_url":"https://api.github.com/users/geejay101/gists{/gist_id}","starred_url":"https://api.github.com/users/geejay101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geejay101/subscriptions","organizations_url":"https://api.github.com/users/geejay101/orgs","repos_url":"https://api.github.com/users/geejay101/repos","events_url":"https://api.github.com/users/geejay101/events{/privacy}","received_events_url":"https://api.github.com/users/geejay101/received_events","type":"User","site_admin":false},"body":"this addresses http://issues.joomla.org/tracker/joomla-cms/7131\r\n\r\nProblem: \r\n\r\nIt is not possible to create admin groups which have the ability to deactivate / activate other users, but not change any other user rights. An administrator/user with only EditState permission for the Administration User component cannot deactivate / activate other users. When clicking on block/unblock in the userlist, the status of the user doesnt change.\r\n\r\nThe problem occurs because the tick-boxes in the userlist are not shown when the administrator has only EditState permission. The tickbox is only shown when the administrator has also Edit permission.\r\n\r\nSolution: \r\nadministrator/components/com_users/views/users/tmpl/default.php\r\nmust be patched in line 94:\r\nold code in Joomla 3.4.1: <?php if ($canEdit) : ?>\r\nNew: <?php if ($canEdit || $canChange) : ?>\r\n\r\n#### Steps to reproduce the issue\r\n\r\nCreate a user / group so that the user has the following calculated settings in the user com_user administration component. \r\n\r\nConfigure ACL & Options: Not Allowed\r\nAccess Administration Interface: Allowed\r\nCreate: Allowed\r\nDelete: Not Allowed.\r\nEdit: Not Allowed.\r\nEdit: State Allowed\r\n\r\nLog into the administrator backend with that user and access the user administration.\r\n\r\n#### Expected result\r\n\r\nThe user should be able to block/unblock other users with the switches in the \"enabled\" column \r\n\r\n#### Actual result\r\n\r\nThe user can see the block/unblock switches in the \"Enabled\" column but when clicking the status of the user is not changing.\r\n\r\nThe problem occurs because the tick-boxes in the userlist are not shown when the administrator has only EditState permission. \r\n\r\n#### System information (as much as possible)\r\n\r\nAny Joomla version from Joomla 2.5.28 until 3.4.1\r\n\r\n\r\nSolution: \r\npatch administrator/components/com_users/views/users/tmpl/default.php\r\nin line 94:\r\nold code in Joomla 3.4.1: <?php if ($canEdit) : ?>\r\nNew: <?php if ($canEdit || $canChange) : ?>","created_at":"2015-06-07T06:16:09Z","updated_at":"2015-06-07T06:16:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/7134/commits","review_comments_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/7134/comments","review_comment_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/7134/comments","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/944a4979136b4af35aaee7e4d4d30a1de1882854","head":{"label":"geejay101:patch-1","ref":"patch-1","sha":"944a4979136b4af35aaee7e4d4d30a1de1882854","user":{"login":"geejay101","id":12772074,"avatar_url":"https://avatars.githubusercontent.com/u/12772074?v=3","gravatar_id":"","url":"https://api.github.com/users/geejay101","html_url":"https://github.com/geejay101","followers_url":"https://api.github.com/users/geejay101/followers","following_url":"https://api.github.com/users/geejay101/following{/other_user}","gists_url":"https://api.github.com/users/geejay101/gists{/gist_id}","starred_url":"https://api.github.com/users/geejay101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geejay101/subscriptions","organizations_url":"https://api.github.com/users/geejay101/orgs","repos_url":"https://api.github.com/users/geejay101/repos","events_url":"https://api.github.com/users/geejay101/events{/privacy}","received_events_url":"https://api.github.com/users/geejay101/received_events","type":"User","site_admin":false},"repo":{"id":37006197,"name":"joomla-cms","full_name":"geejay101/joomla-cms","owner":{"login":"geejay101","id":12772074,"avatar_url":"https://avatars.githubusercontent.com/u/12772074?v=3","gravatar_id":"","url":"https://api.github.com/users/geejay101","html_url":"https://github.com/geejay101","followers_url":"https://api.github.com/users/geejay101/followers","following_url":"https://api.github.com/users/geejay101/following{/other_user}","gists_url":"https://api.github.com/users/geejay101/gists{/gist_id}","starred_url":"https://api.github.com/users/geejay101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geejay101/subscriptions","organizations_url":"https://api.github.com/users/geejay101/orgs","repos_url":"https://api.github.com/users/geejay101/repos","events_url":"https://api.github.com/users/geejay101/events{/privacy}","received_events_url":"https://api.github.com/users/geejay101/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geejay101/joomla-cms","description":"Home of the Joomla! Content Management System","fork":true,"url":"https://api.github.com/repos/geejay101/joomla-cms","forks_url":"https://api.github.com/repos/geejay101/joomla-cms/forks","keys_url":"https://api.github.com/repos/geejay101/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geejay101/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geejay101/joomla-cms/teams","hooks_url":"https://api.github.com/repos/geejay101/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/geejay101/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/geejay101/joomla-cms/events","assignees_url":"https://api.github.com/repos/geejay101/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/geejay101/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/geejay101/joomla-cms/tags","blobs_url":"https://api.github.com/repos/geejay101/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geejay101/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geejay101/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/geejay101/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geejay101/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/geejay101/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/geejay101/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/geejay101/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/geejay101/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/geejay101/joomla-cms/subscription","commits_url":"https://api.github.com/repos/geejay101/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/geejay101/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/geejay101/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/geejay101/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/geejay101/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/geejay101/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geejay101/joomla-cms/merges","archive_url":"https://api.github.com/repos/geejay101/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geejay101/joomla-cms/downloads","issues_url":"https://api.github.com/repos/geejay101/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/geejay101/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/geejay101/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/geejay101/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geejay101/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/geejay101/joomla-cms/releases{/id}","created_at":"2015-06-07T05:52:01Z","updated_at":"2015-06-07T05:52:16Z","pushed_at":"2015-06-07T06:12:29Z","git_url":"git://github.com/geejay101/joomla-cms.git","ssh_url":"git@github.com:geejay101/joomla-cms.git","clone_url":"https://github.com/geejay101/joomla-cms.git","svn_url":"https://github.com/geejay101/joomla-cms","homepage":"http://joomla.org","size":129698,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"staging"}},"base":{"label":"joomla:staging","ref":"staging","sha":"f5ddf6adb0f43b29e5ae1717afdc0cad4d84915d","user":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"repo":{"id":2464908,"name":"joomla-cms","full_name":"joomla/joomla-cms","owner":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla/joomla-cms","description":"Home of the Joomla! Content Management System","fork":false,"url":"https://api.github.com/repos/joomla/joomla-cms","forks_url":"https://api.github.com/repos/joomla/joomla-cms/forks","keys_url":"https://api.github.com/repos/joomla/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla/joomla-cms/teams","hooks_url":"https://api.github.com/repos/joomla/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/joomla/joomla-cms/events","assignees_url":"https://api.github.com/repos/joomla/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/joomla/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/joomla/joomla-cms/tags","blobs_url":"https://api.github.com/repos/joomla/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/joomla/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/joomla/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/joomla/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/joomla/joomla-cms/subscription","commits_url":"https://api.github.com/repos/joomla/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/joomla/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla/joomla-cms/merges","archive_url":"https://api.github.com/repos/joomla/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla/joomla-cms/downloads","issues_url":"https://api.github.com/repos/joomla/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/joomla/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/joomla/joomla-cms/releases{/id}","created_at":"2011-09-27T02:07:38Z","updated_at":"2015-06-06T22:42:49Z","pushed_at":"2015-06-06T13:50:23Z","git_url":"git://github.com/joomla/joomla-cms.git","ssh_url":"git@github.com:joomla/joomla-cms.git","clone_url":"https://github.com/joomla/joomla-cms.git","svn_url":"https://github.com/joomla/joomla-cms","homepage":"http://joomla.org","size":326172,"stargazers_count":1560,"watchers_count":1560,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1738,"mirror_url":null,"open_issues_count":583,"forks":1738,"open_issues":583,"watchers":1560,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/7134"},"html":{"href":"https://github.com/joomla/joomla-cms/pull/7134"},"issue":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/7134"},"comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/7134/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/7134/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/7134/commits"},"statuses":{"href":"https://api.github.com/repos/joomla/joomla-cms/statuses/944a4979136b4af35aaee7e4d4d30a1de1882854"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}