feat: allow global settings as fallback when user has not defined any
This commit is contained in:
		@@ -31,6 +31,8 @@ more flags to follow soon!</description>
 | 
			
		||||
		<nextcloud min-version="26" max-version="29"/>
 | 
			
		||||
	</dependencies>
 | 
			
		||||
	<settings>
 | 
			
		||||
		<admin-section>OCA\PrideFlags\Settings\AdminSection</admin-section>
 | 
			
		||||
		<admin>OCA\PrideFlags\Settings\AdminSettings</admin>
 | 
			
		||||
		<personal-section>OCA\PrideFlags\Settings\PersonalSection</personal-section>
 | 
			
		||||
		<personal>OCA\PrideFlags\Settings\PersonalSettings</personal>
 | 
			
		||||
	</settings>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,5 +4,7 @@ return [
 | 
			
		||||
	'routes' => [
 | 
			
		||||
		['name' => 'settings#get', 'url' => '/settings', 'verb' => 'GET'],
 | 
			
		||||
		['name' => 'settings#set', 'url' => '/settings', 'verb' => 'POST'],
 | 
			
		||||
		['name' => 'settings#getGlobal', 'url' => '/settings/global', 'verb' => 'GET'],
 | 
			
		||||
		['name' => 'settings#setGlobal', 'url' => '/settings/global', 'verb' => 'POST'],
 | 
			
		||||
	]
 | 
			
		||||
];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user