{"action":"opened","issue":{"url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/1256","repository_url":"https://api.github.com/repos/wpninjas/ninja-forms","labels_url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/1256/comments","events_url":"https://api.github.com/repos/wpninjas/ninja-forms/issues/1256/events","html_url":"https://github.com/wpninjas/ninja-forms/issues/1256","id":141874764,"number":1256,"title":"Error in assigning submenu page a capability","user":{"login":"stephenharris","id":3255034,"avatar_url":"https://avatars.githubusercontent.com/u/3255034?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenharris","html_url":"https://github.com/stephenharris","followers_url":"https://api.github.com/users/stephenharris/followers","following_url":"https://api.github.com/users/stephenharris/following{/other_user}","gists_url":"https://api.github.com/users/stephenharris/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenharris/subscriptions","organizations_url":"https://api.github.com/users/stephenharris/orgs","repos_url":"https://api.github.com/users/stephenharris/repos","events_url":"https://api.github.com/users/stephenharris/events{/privacy}","received_events_url":"https://api.github.com/users/stephenharris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-18T14:01:30Z","updated_at":"2016-03-18T14:01:30Z","closed_at":null,"body":"Hi,\r\n\r\nThe code in question is in the deprecated folder but is still being invoked on a fresh install (I couldn't determine if that was intentional or not).\r\n\r\nIn any case there is an error here: https://github.com/wpninjas/ninja-forms/blob/eb120e4644848d62eec885f2a9ad88c557ef403c/deprecated/upgrade/class-submenu.php#L59\r\n\r\nI think you mean to use `apply_filters` rather than the `add_filter`. As it is, `$this->capability` gets set to `true` which causes some issues further down the lien at the `map_meta_cap` hook. This was reported by a mutual user at https://github.com/stephenharris/Event-Organiser/issues/351\r\n\r\nVersion: 2.9.37\r\n\r\nMany thanks,\r\nStephen"}}