mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-11-04 01:15:36 -05:00 
			
		
		
		
	only admins can see checkins
This commit is contained in:
		
							parent
							
								
									b450baa3dc
								
							
						
					
					
						commit
						854c8efaa9
					
				@ -48,13 +48,12 @@ class AppTabPanel < Netzke::Basepack::TabPanel
 | 
				
			|||||||
                                      title: "Users/Transactions"}]
 | 
					                                      title: "Users/Transactions"}]
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
    if can? :manage, ::ActsAsLoggable::Log.all
 | 
					    if can? :manage, ::ActsAsLoggable::Log.all
 | 
				
			||||||
      @@app_tab_panel_items.concat [:logs]
 | 
					      @@app_tab_panel_items.concat [:logs, :check_ins]
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
    if can? :manage, Role
 | 
					    if can? :manage, Role
 | 
				
			||||||
      @@app_tab_panel_items.concat [{ layout: :fit,
 | 
					      @@app_tab_panel_items.concat [{ layout: :fit,
 | 
				
			||||||
                                      wrappedComponent: :user_role_joins,
 | 
					                                      wrappedComponent: :user_role_joins,
 | 
				
			||||||
                                      title: "User Roles"},
 | 
					                                      title: "User Roles"},
 | 
				
			||||||
                                      :check_ins
 | 
					 | 
				
			||||||
                                      ]
 | 
					                                      ]
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user