ajaxCRUD additional function for access permissions

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

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.

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;
.....
}

PHP Архітектура ПЗ

ID Проекту: #4228759

Про проект

8 заявок(-ки) Дистанційний проект Остання активність Feb 12, 2013

Доручено:

marchingantssl

Hello, I am familiar with many ACL systems. Allow me to take this chance to serve you. Thanks

€100 EUR за 4 дні(-в)
(234 відгуків(-и))
7.9

8 фрілансерів(-и) готові виконати цю роботу у середньому за €154

toinnisfree

quick pro help. ftp and milestone required.

€185 EUR за 3 дні(-в)
(767 відгуків(и))
8.3
shihan033010

Hi I am expert in ajax crud operation. Please give me details.

€150 EUR за 3 дні(-в)
(320 відгуків(и))
6.8
k1ng440

Full time freelance web developer with over 8 years of commercial experience.

€200 EUR за 3 дні(-в)
(99 відгуків(и))
6.5
abanipatra

Hi, I would like to work on your project.

€100 EUR за 5 дні(-в)
(113 відгуків(и))
6.5
adibr70

I have experience working with PHP, JavaScript, AJAX, MySQL and integration into a site. Check your Private Message to see some examples of sites that I made using PHP. Adrian

€249 EUR за 15 дні(-в)
(30 відгуків(и))
5.5
nazrulcsebdsl

Dear Sir, I already have done many CRUD operation using PHP, Codeigniter. So, I want to work with u.

€130 EUR за 3 дні(-в)
(0 відгуків(и))
0.0