﻿$principals:{principal |
$principal.databases:{database |
:connect $database.server$
use [$database.name$];
go

$current_user(principal.name, database, database.securables)$

go
}$
}$

﻿$principals:{principal |
$principal.databases:{database |
:connect $database.server$
use [$database.name$];
go

$current_user(principal.name, database, securables=database.securables)$

go
}$
}$

Fix issue with 'securables' not known in called teamplate
Fix issue with 'securables' not known in called teamplate