AKZA#36723 INS: Autorisatie voor objectbeheerder: alleen eigen objecten bewerken
svn path=/Website/trunk/; revision=32070
This commit is contained in:
@@ -103,7 +103,7 @@ if (obj_key > 0)
|
||||
|
||||
// Heb ik de juiste rechten
|
||||
var this_ins = ins.func_enabled_deel(obj_key);
|
||||
user.auth_required_or_abort(this_ins.canChange); // dat is toch wel het minste
|
||||
user.auth_required_or_abort(this_ins.canChange || this_ins.canChangeOwn); // dat is toch wel het minste
|
||||
|
||||
if (urole != "fo")
|
||||
{
|
||||
@@ -179,7 +179,7 @@ else
|
||||
|
||||
// De schrijfrechten controleren i.v.m. discipline en alg scope
|
||||
var iresult = ins.func_enabled_scope(disc_key, bind, bind_key);
|
||||
if (!iresult || !iresult.canChange)
|
||||
if (!iresult || !iresult.canChange || !iresult.canChangeOwn)
|
||||
abort_with_warning(L("lcl_obj_notallowed")); // combinatie niet toegestaan
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user