Fix approval authorized_users_by_title and get_authorization_by_title
This commit is contained in:
		
							parent
							
								
									778f7c7863
								
							
						
					
					
						commit
						49bb8304c0
					
				|  | @ -36,13 +36,13 @@ module OrbitModel | ||||||
|     	# Specific case |     	# Specific case | ||||||
|     	# Approval or sub-manager is defined on something else than categories |     	# Approval or sub-manager is defined on something else than categories | ||||||
| 	    def authorized_users_by_title(title) | 	    def authorized_users_by_title(title) | ||||||
| 	    	approval_users if auth_approval && auth_approval.title.eql?(title) | 	    	return approval_users if auth_approval && auth_approval.title.eql?(title) | ||||||
| 	    	sub_managers if auth_sub_manager && auth_sub_manager.title.eql?(title) | 	    	return sub_managers if auth_sub_manager && auth_sub_manager.title.eql?(title) | ||||||
| 	    end | 	    end | ||||||
| 
 | 
 | ||||||
| 	    def get_authorization_by_title(title) | 	    def get_authorization_by_title(title) | ||||||
| 	    	auth_approval if auth_approval && auth_approval.title.eql?(title) | 	    	return auth_approval if auth_approval && auth_approval.title.eql?(title) | ||||||
| 	    	auth_sub_manager if auth_sub_manager && auth_sub_manager.title.eql?(title) | 	    	return auth_sub_manager if auth_sub_manager && auth_sub_manager.title.eql?(title) | ||||||
| 	    end | 	    end | ||||||
| 
 | 
 | ||||||
|     	def user_is_authorized_by_title?(user, title) |     	def user_is_authorized_by_title?(user, title) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue