ajaxCRUD additional function for access permissions

IN PROGRESS
Bids
9
Avg Bid (EUR)
148
Project Budget (EUR)
€30 - €250

Project Description:
Additional function for ajaxCRUD needed.
This function should check users permissions in a generic way as far as possible.

conditions to check:
1. given user table
2. read access on this object
3. read and write access on this object

Please place bits only if you are familiar to the ajaxCRUD or you agree that you have to get familiar with it. And in addition to this you agree that this function will be contributed to ajaxCRUD.

Additional Project Description:
02/10/2013 at 3:31 EST
function should work like this (just to give an idea)

$tableobject->checkAccess(USERTABLE,USERTABLE.username_field,PERMTABLE);

Conditions:
USERTABLE should be generic as far as possible
PERMTABLE hold data like

permID(int,11,pk)
userID(int,11)
clientID(int,11)
cname(varchar,50)
ctype(varchar,10)
acl(varchar,4)

alc holds
NULL no permissions
rrrr Read data
rrur Read and Update data
crur Create (Add), Read and Update data
crud Create (Add), Read, update and delete

Depending on this ACL, given functions within ajaxCRUD class should be set to true or false:

Example:
if($permission == 'rrrr') {
$delete = FALSE;
$ajax_add = FALSE;
$ajax_editing = FALSE;
.....
}

if($permission == 'rrur') {
$delete = FALSE;
$ajax_add = FALSE;
$ajax_editing = true;
.....
}

Skills required:
PHP, Software Architecture
Hire ELExG
Project posted by:
ELExG Austria
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


€ 185
in 3 days
€ 100
in 4 days
€ 200
in 3 days
Hire shihan033010
€ 150
in 3 days
€ 249
in 15 days
Hire abanipatra
€ 100
in 5 days
€ 100
in 10 days
€ 120
in 2 days
€ 130
in 3 days