lxd/project/permissions: Updates AllowSnapshotCreation to accept a DB project record
lxd/project/permissions: Updates AllowSnapshotCreation to accept a DB project record

Rather than load it itself, and cause the Transaction handler to report a DB error when the project doesn't support snapshot creation.

Signed-off-by: Thomas Parrott <6b778ce645fb0e3dde76d79eccad490955b1ae74@canonical.com>

hallyn/lxd,stgraber/lxd,hallyn/lxd,hallyn/lxd,lxc/lxd,hallyn/lxd,lxc/lxd,stgraber/lxd,stgraber/lxd,hallyn/lxd,lxc/lxd,lxc/lxd,stgraber/lxd,stgraber/lxd,stgraber/lxd,stgraber/lxd,lxc/lxd,lxc/lxd,hallyn/lxd,lxc/lxd