[Rt-commit] rt branch, 4.0/validate-systeminternal-uniqueness, created. rt-4.0.0rc8-150-ga15c0be

Shawn Moore sartak at bestpractical.com
Fri Apr 15 12:54:26 EDT 2011


The branch, 4.0/validate-systeminternal-uniqueness has been created
        at  a15c0bef272f7f8416d054f577e794f4783dbdc8 (commit)

- Log -----------------------------------------------------------------
commit a15c0bef272f7f8416d054f577e794f4783dbdc8
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Apr 15 12:54:08 2011 -0400

    Validate uniqueness of system internal groups

diff --git a/sbin/rt-validator.in b/sbin/rt-validator.in
index 1250f1a..dc79c35 100644
--- a/sbin/rt-validator.in
+++ b/sbin/rt-validator.in
@@ -359,6 +359,15 @@ push @CHECKS, 'Role Groups (Instance, Type) uniqueness' => sub {
     );
 };
 
+push @CHECKS, 'System internal group uniqueness' => sub {
+    check_uniqueness(
+        'Groups',
+        columns     => ['Instance', 'Type'],
+        condition   => '.Domain = ?',
+        bind_values => [ 'SystemInternal' ],
+    );
+};
+
 # CHECK that user defined group names are unique
 push @CHECKS, 'User Defined Group Name uniqueness' => sub {
     check_uniqueness(

-----------------------------------------------------------------------


More information about the Rt-commit mailing list