<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Permissions on seth-shi</title><link>https://sethix.com/tags/permissions/</link><description>Recent content in Permissions on seth-shi</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 17 Oct 2018 16:12:05 +0800</lastBuildDate><atom:link href="https://sethix.com/tags/permissions/index.xml" rel="self" type="application/rss+xml"/><item><title>In Route Permission Control, a Paginated List Permission Can Simultaneously Control All List Permissions</title><link>https://sethix.com/posts/2018101716/</link><pubDate>Wed, 17 Oct 2018 16:12:05 +0800</pubDate><guid>https://sethix.com/posts/2018101716/</guid><description>Recently encountered an issue while implementing permission control for API endpoints.
This builds upon our previous permission control method: Using Route-Based Permission Control in Laravel (Applicable Beyond Laravel, as a Conceptual Approach)
We have two route aliases:
Paginated city list: cities.index
Complete city list: cities.index.all
These represent two separate permissions. To ensure users with only the cities.index permission can also access cities.index.all (since both belong to list operations under normal logic), we need to make minor adjustments to our validation logic.</description></item><item><title>Permission Control via Routing in Laravel (Not Limited to Laravel, Just a Conceptual Approach)</title><link>https://sethix.com/posts/2018032712/</link><pubDate>Tue, 27 Mar 2018 12:53:51 +0800</pubDate><guid>https://sethix.com/posts/2018032712/</guid><description>Start Permission design is a crucial feature for backend management systems. PHP already has many mature packages for this purpose, so we don&amp;rsquo;t need to reinvent the wheel (though you certainly can if preferred).
PS Here are two common historical approaches for permission verification:
Verify required permissions individually on each page Centralized verification via middleware First, let&amp;rsquo;s examine a simplified database schema (retaining only critical fields) with its ER diagram: Database Model Diagram (Note: In this design, users don&amp;rsquo;t directly possess permissions but inherit them through roles.</description></item></channel></rss>