Initialize global object layer after all subsystems have initialized (#6333)

This is to ensure that object API operations are not performed
on a server on which subsystems are yet to be initialized.
This commit is contained in:
Harshavardhana
2018-08-22 23:11:17 -07:00
committed by GitHub
parent 8601f29d95
commit b01e69e08f
4 changed files with 13 additions and 21 deletions

View File

@@ -77,10 +77,6 @@ func (sys *PolicySys) Remove(bucketName string) {
// IsAllowed - checks given policy args is allowed to continue the Rest API.
func (sys *PolicySys) IsAllowed(args policy.Args) bool {
if sys == nil {
return args.IsOwner
}
sys.RLock()
defer sys.RUnlock()