Changeset 387 for trunk


Ignore:
Timestamp:
09/21/12 13:00:22 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Add a new permission record_locchg to separate changing the
location of a record from the abaility to edit a record or
change the location definition. See #10.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r386 r387  
    115115        user_edit       user_create     user_delete
    116116        domain_edit     domain_create   domain_delete
    117         record_edit     record_create   record_delete
     117        record_edit     record_create   record_delete   record_locchg
    118118        location_edit   location_create location_delete location_view
    119119        self_edit       admin
     
    14771477        p.user_create,p.user_edit,p.user_delete,
    14781478        p.domain_create,p.domain_edit,p.domain_delete,
    1479         p.record_create,p.record_edit,p.record_delete,
     1479        p.record_create,p.record_edit,p.record_delete,p.record_locchg,
    14801480        p.location_create,p.location_edit,p.location_delete,p.location_view
    14811481        FROM permissions p
     
    15051505        $hash->{user_create},$hash->{user_edit},$hash->{user_delete},
    15061506        $hash->{domain_create},$hash->{domain_edit},$hash->{domain_delete},
    1507         $hash->{record_create},$hash->{record_edit},$hash->{record_delete},
     1507        $hash->{record_create},$hash->{record_edit},$hash->{record_delete},$hash->{record_locchg},
    15081508        $hash->{location_create},$hash->{location_edit},$hash->{location_delete},$hash->{location_view}
    15091509        ) = $sth->fetchrow_array;
     
    21832183
    21842184## DNSDB::getZoneLocation()
    2185 # Retrieve the default locatino for a zone.
     2185# Retrieve the default location for a zone.
    21862186# Takes a database handle, forward/reverse flag, and zone ID
    21872187sub getZoneLocation {
  • trunk/dns-1.0-1.2.sql

    r375 r387  
    1414    ADD CONSTRAINT "locations_group_id_fkey" FOREIGN KEY (group_id) REFERENCES groups(group_id);
    1515
     16ALTER TABLE permissions ADD COLUMN record_locchg boolean DEFAULT false NOT NULL;
    1617ALTER TABLE permissions ADD COLUMN location_create boolean DEFAULT false NOT NULL;
    1718ALTER TABLE permissions ADD COLUMN location_edit boolean DEFAULT false NOT NULL;
  • trunk/dns.sql

    r375 r387  
    134134    record_edit boolean DEFAULT false NOT NULL,
    135135    record_delete boolean DEFAULT false NOT NULL,
     136    record_locchg boolean DEFAULT false NOT NULL,
    136137    location_create boolean DEFAULT false NOT NULL,
    137138    location_edit boolean DEFAULT false NOT NULL,
Note: See TracChangeset for help on using the changeset viewer.