github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/apiserver/modelmanager/export_test.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package modelmanager
     5  
     6  import (
     7  	gc "gopkg.in/check.v1"
     8  
     9  	"gopkg.in/juju/names.v2"
    10  )
    11  
    12  func AuthCheck(c *gc.C, mm *ModelManagerAPI, user names.UserTag) bool {
    13  	mm.authCheck(user)
    14  	return mm.isAdmin
    15  }