mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-10-31 18:35:57 +01:00 
			
		
		
		
	ACL access updates
This commit is contained in:
		
							
								
								
									
										6
									
								
								UPGRADE.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								UPGRADE.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # Upgrading to Admin 1.10 | ||||
|  | ||||
| Twig: | ||||
|  | ||||
| * **Admin link**: When linking to another admin page, use `{{ admin_route('/config/site') }}` instead of any other method, such as `{{ base_url_relative }}/config/site` (fixes multi-language issues) | ||||
|  | ||||
| @@ -869,7 +869,7 @@ class AdminController extends AdminBaseController | ||||
|      */ | ||||
|     protected function taskGpmRelease() | ||||
|     { | ||||
|         if (!$this->authorizeTask('configuration', ['admin.configuration', 'admin.super'])) { | ||||
|         if (!$this->authorizeTask('configuration', ['admin.configuration.system', 'admin.super'])) { | ||||
|             return false; | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -2,6 +2,7 @@ | ||||
| title: Config | ||||
|  | ||||
| access: | ||||
|     admin.configuration: true | ||||
|     admin.configuration.system: true | ||||
|     admin.configuration.site: true | ||||
|     admin.super: true | ||||
| --- | ||||
|   | ||||
| @@ -2,6 +2,6 @@ | ||||
| title: PHP Info | ||||
| template: config | ||||
| access: | ||||
|     admin.settings: true | ||||
|     admin.configuration.info: true | ||||
|     admin.super: true | ||||
| --- | ||||
|   | ||||
| @@ -2,6 +2,6 @@ | ||||
| title: Site Settings | ||||
| template: config | ||||
| access: | ||||
|     admin.settings: true | ||||
|     admin.configuration.site: true | ||||
|     admin.super: true | ||||
| --- | ||||
|   | ||||
| @@ -2,6 +2,6 @@ | ||||
| title: Configuration | ||||
| template: config | ||||
| access: | ||||
|     admin.configuration: true | ||||
|     admin.configuration.system: true | ||||
|     admin.super: true | ||||
| --- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user