Title: Way to strip a player's specific permissions/parents from the guest group. · Issue #364 · Source-Python-Dev-Team/Source.Python · GitHub
Open Graph Title: Way to strip a player's specific permissions/parents from the guest group. · Issue #364 · Source-Python-Dev-Team/Source.Python
X Title: Way to strip a player's specific permissions/parents from the guest group. · Issue #364 · Source-Python-Dev-Team/Source.Python
Description: Guest groups in auth are very useful, however it is very difficult to strip certain permissions/parents from the guest group. The guest group is expected to set permissions over features that would be available to all players, but there ...
Open Graph Description: Guest groups in auth are very useful, however it is very difficult to strip certain permissions/parents from the guest group. The guest group is expected to set permissions over features that would...
X Description: Guest groups in auth are very useful, however it is very difficult to strip certain permissions/parents from the guest group. The guest group is expected to set permissions over features that would...
Opengraph URL: https://github.com/Source-Python-Dev-Team/Source.Python/issues/364
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Way to strip a player's specific permissions/parents from the guest group.","articleBody":"[`Guest groups in auth`](https://github.com/Source-Python-Dev-Team/Source.Python/blob/972547be070e74a3f785284cefef53d98fab83c8/addons/source-python/docs/source-python/source/general/config-auth.rst#assigning-permissions-to-guests) are very useful, however it is very difficult to strip certain permissions/parents from the guest group.\r\n\r\nThe guest group is expected to set permissions over features that would be available to all players, but there is no way to deal with players who abuse that feature.\r\nSo the ability to revoke certain permissions in a guest group from certain players seems to be useful.\r\n\r\nExample: When you want to strip only `say2` from a particular player.\r\nCode: parents.json\r\n```json\r\n{\r\n \"guest\": {\r\n \"permissions\": [\r\n \"say\",\r\n \"say2\"\r\n ]\r\n }\r\n}\r\n```\r\n\r\nIt is very difficult to strip permissions from this state.\r\n\r\nYou cannot strip the `guest` because `say` will not work.(i.e. `sp auth permission player remove_parent player guest`)\r\nYou cannot strip `say2` because `say2` on the guest will still work.(i.e. `sp auth permission player remove player say2`)\r\n\r\nIn order to strip `say2` you need to strip the `guest` and then add a `say`.\r\n`sp auth permission player remove_parent player guest`\r\n`sp auth permission player add player say`\r\n\r\nHowever, this breaks the functionality of the guest group, because the newly added permissions/parents to the `guest` will no longer function with this player.\r\n\r\nRight now, I don't have any working code, but I'm thinking of something that would negate the guest group,\r\nCode: negate_group.json\r\n```json\r\n{\r\n \"STEAM_1:0:0\": {\r\n \"permissions\": [\r\n \"say2\"\r\n ]\r\n }\r\n}\r\n```\r\nOr create a setting value that negates the permissions/parents itself.\r\nCode: players.json\r\n```json\r\n{\r\n \"STEAM_1:0:0\": {\r\n \"negates\": {\r\n \"permissions\": [\r\n \"say2\"\r\n ]\r\n }\r\n }\r\n}\r\n```\r\n\r\nWhat do you all think?","author":{"url":"https://github.com/CookStar","@type":"Person","name":"CookStar"},"datePublished":"2020-11-25T03:44:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/364/Source.Python/issues/364"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5300eba0-f280-00aa-087b-8ff1f4e2f3bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 979A:2AB24:1E8F3C9:296EB1D:69707E37 |
| html-safe-nonce | 672ae682fd6d52162642ad48e9ea66ea1a688d629a73732554a677a1083a9b38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzlBOjJBQjI0OjFFOEYzQzk6Mjk2RUIxRDo2OTcwN0UzNyIsInZpc2l0b3JfaWQiOiIzMzkxODc1NjI2OTI5NTIwMTgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1ad08ddf22f20da9a0570f7231d4fbf591a79b476b753019823167e4c76db71b |
| hovercard-subject-tag | issue:750368770 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/Source-Python-Dev-Team/Source.Python/364/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0789bbb39253fdc44f5661638c68cf6ebb16edceaca75022aaff13268abc8250/Source-Python-Dev-Team/Source.Python/issues/364 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0789bbb39253fdc44f5661638c68cf6ebb16edceaca75022aaff13268abc8250/Source-Python-Dev-Team/Source.Python/issues/364 |
| og:image:alt | Guest groups in auth are very useful, however it is very difficult to strip certain permissions/parents from the guest group. The guest group is expected to set permissions over features that would... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CookStar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/Source-Python-Dev-Team/Source.Python git https://github.com/Source-Python-Dev-Team/Source.Python.git |
| octolytics-dimension-user_id | 5440368 |
| octolytics-dimension-user_login | Source-Python-Dev-Team |
| octolytics-dimension-repository_id | 12771934 |
| octolytics-dimension-repository_nwo | Source-Python-Dev-Team/Source.Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12771934 |
| octolytics-dimension-repository_network_root_nwo | Source-Python-Dev-Team/Source.Python |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width