ext/admin: add explanation to PermissionDenied
This commit is contained in:
		
							parent
							
								
									2942f8bcac
								
							
						
					
					
						commit
						8c9ce0587b
					
				| @ -29,6 +29,8 @@ class AdminExtension(qubes.ext.Extension): | |||||||
|         '''Forbid changing specific tags''' |         '''Forbid changing specific tags''' | ||||||
|         # pylint: disable=no-self-use,unused-argument |         # pylint: disable=no-self-use,unused-argument | ||||||
|         if arg.startswith('created-by-'): |         if arg.startswith('created-by-'): | ||||||
|             raise qubes.api.PermissionDenied() |             raise qubes.api.PermissionDenied( | ||||||
|  |                 'changing this tag is prohibited by {}.{}'.format( | ||||||
|  |                     __name__, type(self).__name__)) | ||||||
| 
 | 
 | ||||||
|     # TODO create that extension in the first place |     # TODO create that tag here (need to figure out how to pass mgmtvm name) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Wojtek Porczyk
						Wojtek Porczyk