{"issue":{"pull_request":{"diff_url":"https://github.com/pyrocms/pyrocms/pull/837.diff","html_url":"https://github.com/pyrocms/pyrocms/pull/837","patch_url":"https://github.com/pyrocms/pyrocms/pull/837.patch"},"state":"open","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/880eb78e57fe3e4742de163787092506?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"880eb78e57fe3e4742de163787092506","url":"https://api.github.com/users/wingdigby","login":"wingdigby","id":1076287},"labels":[],"updated_at":"2011-10-30T20:10:27Z","assignee":null,"comments":1,"closed_at":null,"url":"https://api.github.com/repos/pyrocms/pyrocms/issues/837","body":"Permissions allows array of sub-permissions (based on a db table like categories). User helper modified to allow this and also to allow restrictions.\r\n\r\npermission: default is true for admin else false\r\nrestriction: default is false for admin else true\r\n\r\nApplied example: Blog permissions:\r\nrestrict to own posts only: restrict_own\r\nrestrict to selected categories : array( name=> 'restrict_categories', table=>'categories', field=>'title')\r\n\r\nWill post separate commit and pull request with Blog changes that do just this.\r\n\r\nComments and discussion sought. Ta.","html_url":"https://github.com/pyrocms/pyrocms/issues/837","number":837,"title":"Permissions: allow restrictions and subpermission arrays based on specified db table. User helper allows restrictions and subpermissions.","id":2024336,"created_at":"2011-10-22T20:36:39Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/880eb78e57fe3e4742de163787092506?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"880eb78e57fe3e4742de163787092506","url":"https://api.github.com/users/wingdigby","login":"wingdigby","id":1076287},"updated_at":"2011-10-30T20:10:27Z","url":"https://api.github.com/repos/pyrocms/pyrocms/issues/comments/2571253","body":"Have added commits since last week 1. addressed the recursion issue (ie, if parent_id then structure accordingly) 2. cleaned up excessive logic in the view and moved it to the model and 3. applied new permission structure to Blog module. \r\n\r\nWhat's the protocol now? Do I leave this pull request up until you guys say yes it looks like a good feature to have(in which case there are a couple more obvious bits to add), or no you're not interested, bugger off ... or do I just close this, and do a fresh pull request, and see what happens from there?","id":2571253,"created_at":"2011-10-30T20:10:27Z"}}