Title: Allow $page()->addable() to be called with a template or template name by JanRomero · Pull Request #294 · processwire/processwire · GitHub
Open Graph Title: Allow $page()->addable() to be called with a template or template name by JanRomero · Pull Request #294 · processwire/processwire
X Title: Allow $page()->addable() to be called with a template or template name by JanRomero · Pull Request #294 · processwire/processwire
Description: Currently it seems awkward to check if a user is allowed to create a page of a specific template under a specific parent. It seems one is supposed to do this? if (page()->addable(pages()->newPage('...
Open Graph Description: Currently it seems awkward to check if a user is allowed to create a page of a specific template under a specific parent. It seems one is supposed to do this? if (page()->addable(pages()->new...
X Description: Currently it seems awkward to check if a user is allowed to create a page of a specific template under a specific parent. It seems one is supposed to do this? if (page()->addable(pages()-&am...
Opengraph URL: https://github.com/processwire/processwire/pull/294
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:4de940b4-6174-826a-b3d6-5ceaeef1699d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A6AE:9AEAB:7BECE1:AA4D95:6980A8CC |
| html-safe-nonce | a7095906e0f81e46d0c29f01a3c19a9a41fdbcd9768136301a77c1c62f56b7f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkFFOjlBRUFCOjdCRUNFMTpBQTREOTU6Njk4MEE4Q0MiLCJ2aXNpdG9yX2lkIjoiNzYxODM0NzA0MjE5MjAwOTQyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 320c24e736801b369749fdea5a5c347700c3c42cc726dde6688805b9f4836e74 |
| hovercard-subject-tag | pull_request:1936462948 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/processwire/processwire/294/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/4572fb4ecbe05ccf13967fa64629d708b0ae9b2bcad94af8e7dd6ed0f70cec86/processwire/processwire/pull/294 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4572fb4ecbe05ccf13967fa64629d708b0ae9b2bcad94af8e7dd6ed0f70cec86/processwire/processwire/pull/294 |
| og:image:alt | Currently it seems awkward to check if a user is allowed to create a page of a specific template under a specific parent. It seems one is supposed to do this? if (page()->addable(pages()->new... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JanRomero |
| hostname | github.com |
| expected-hostname | github.com |
| None | 397d19ba710db18a5bb8753941062283effd69f9bf1c4828adfea0f79443f2f8 |
| turbo-cache-control | no-preview |
| go-import | github.com/processwire/processwire git https://github.com/processwire/processwire.git |
| octolytics-dimension-user_id | 944567 |
| octolytics-dimension-user_login | processwire |
| octolytics-dimension-repository_id | 66832303 |
| octolytics-dimension-repository_nwo | processwire/processwire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 66832303 |
| octolytics-dimension-repository_network_root_nwo | processwire/processwire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af3ed57de2d3e996d6b26c9b863321bbc7aeae13 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width