{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/13682","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/13682/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/13682/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/13682/events","html_url":"https://github.com/joomla/joomla-cms/issues/13682","id":202373254,"number":13682,"title":"Control inheritance of menu items.","user":{"login":"Napoleon-BlownApart","id":6958677,"avatar_url":"https://avatars.githubusercontent.com/u/6958677?v=3","gravatar_id":"","url":"https://api.github.com/users/Napoleon-BlownApart","html_url":"https://github.com/Napoleon-BlownApart","followers_url":"https://api.github.com/users/Napoleon-BlownApart/followers","following_url":"https://api.github.com/users/Napoleon-BlownApart/following{/other_user}","gists_url":"https://api.github.com/users/Napoleon-BlownApart/gists{/gist_id}","starred_url":"https://api.github.com/users/Napoleon-BlownApart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Napoleon-BlownApart/subscriptions","organizations_url":"https://api.github.com/users/Napoleon-BlownApart/orgs","repos_url":"https://api.github.com/users/Napoleon-BlownApart/repos","events_url":"https://api.github.com/users/Napoleon-BlownApart/events{/privacy}","received_events_url":"https://api.github.com/users/Napoleon-BlownApart/received_events","type":"User","site_admin":false},"labels":[{"id":138443932,"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-22T09:59:27Z","updated_at":"2017-01-31T06:53:28Z","closed_at":null,"body":"This could be considered a feature request.\r\n\r\nI have implemented an **Inheritable** property for menu items that is controlled by the standard binary toggle switch in the _Menus:Edit Item -> Details_ screen. The property determines if higher access levels inherit the menu item.\r\n\r\nFor example:\r\nWith a \"Register\" menu link (whose access is set to Public with Inheritable NO), a public visitor to the site will be able to register, but once they have activated their account and been upgraded to a Registered user, they will not see the \"Register\" link while they remain logged in.\r\nHad the Inheritable property been left ON (default), the menu item's behaviour would have been standard Joomla behaviour, and the Registered user would still be able to see the \"Register\" link (unless a separte menu was created for registered users or some other hack was implemented).\r\n\r\nFrom various posts I have read concerning this issue, I believe this to be a simple, elegant, unobtrusive solution to this particular problem. It would be nice if a future release of Joomla incorporated this change, or something similar.\r\n\r\nThe details of the changes are below. The changes are, to the best of my knowledge, backwards compatible, but if you choose to implement/try these changes, you should study the surrounding code to be sure you are putting it in the right places. Any and all feedback are welcome!\r\n\r\nCheers,\r\nNap.\r\n\r\n~~The proposed code can be seen in the Joomla Extension sub-forum:~~\r\n  https://forum.joomla.org/viewtopic.php?f=708&t=945868&p=3457261#p3457261\r\nI have included the code in the post below."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/276288652","html_url":"https://github.com/joomla/joomla-cms/issues/13682#issuecomment-276288652","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/13682","id":276288652,"user":{"login":"Napoleon-BlownApart","id":6958677,"avatar_url":"https://avatars.githubusercontent.com/u/6958677?v=3","gravatar_id":"","url":"https://api.github.com/users/Napoleon-BlownApart","html_url":"https://github.com/Napoleon-BlownApart","followers_url":"https://api.github.com/users/Napoleon-BlownApart/followers","following_url":"https://api.github.com/users/Napoleon-BlownApart/following{/other_user}","gists_url":"https://api.github.com/users/Napoleon-BlownApart/gists{/gist_id}","starred_url":"https://api.github.com/users/Napoleon-BlownApart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Napoleon-BlownApart/subscriptions","organizations_url":"https://api.github.com/users/Napoleon-BlownApart/orgs","repos_url":"https://api.github.com/users/Napoleon-BlownApart/repos","events_url":"https://api.github.com/users/Napoleon-BlownApart/events{/privacy}","received_events_url":"https://api.github.com/users/Napoleon-BlownApart/received_events","type":"User","site_admin":false},"created_at":"2017-01-31T06:53:28Z","updated_at":"2017-01-31T06:53:28Z","body":"I deleted my branch to do a clean restart.  What I didn't realise is that github would close my PR.  Now I can't open it because it's been 'force pushed' and it seems to me I need to open a new PR .   This does not sound very good because all the history will be lost from the previous PR.\r\n\r\nWhat is the best thing to do now?"}}
{"actor":{"display_login":"Napoleon-BlownApart"}}