{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/2740","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/2740/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/2740/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/2740/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/2740","id":68199124,"number":2740,"title":"Content Item access control - settings for roles are not persisted properly, when some of the roles are turned off to be displayed in the editor.","user":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OrchardCMS/Orchard/labels/resolved","name":"resolved","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/14","html_url":"https://github.com/OrchardCMS/Orchard/milestones/Orchard%201.6.1","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/14/labels","id":1065772,"number":14,"title":"Orchard 1.6.1","description":"Please read our release notes for Orchard 1.6:\n[url:http://docs.orchardproject.net/Documentation/Orchard-1-6-Release-Notes]\n\nOrchard 1.6.1 is a security update:\n[url:http://docs.orchardproject.net/Documentation/Patch-4-30-2013]\n\n*Please* do not post questions as reviews. Questions should be posted in the Discussions tab, where they will usually get promptly responded to. If you post a question as a review, you will pollute the rating, and you won't get an answer.","creator":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":61,"state":"closed","created_at":"2015-04-13T19:41:11Z","updated_at":"2015-04-13T21:30:01Z","due_on":"2013-04-30T07:00:00Z","closed_at":"2015-04-13T19:41:11Z"},"comments":4,"created_at":"2012-08-08T20:17:06Z","updated_at":"2015-04-13T21:30:01Z","closed_at":"2015-04-13T21:30:01Z","body":"__okushynsky__ created:\r\nhttps://orchard.codeplex.com/workitem/18913\r\n\r\nOrchard.ContentPermissions - Version: 1.5\n\nCreate a new role \"Team\".\nAdd Content Permissions part to some content type.\nChange Content Permissions Settings for that content type: go to \"Only show those roles in the editor\" section and clear all checkboxes, except Administrator and Team.\nGo to editing some content item of that content type, and check Enable Content Item access control.\r\nOnly Adminstrator and Team roles are displayed because we turned off other roles in step 3.\n\nSet permissions for Team role and click Save. \r\nThe changes are not persisted after page reloads.\n\n\nI checked the Orchard_ContentPermissions_ContentPermissionsPartRecord - the row is created there. but the column values (for instance ViewContent) looks like: Administrator,Anonymous.\r\nIf in step 3 check all roles to be displayed in editor, then the changes in step 5 are persisted correctly and column value looks like Administrator,Team.\n"}}