implemented storedprocedure CHECK_RIGHT in PHP as $righsmanager->checkRight($right, $user) and $user->checkRight($right)
Problem was: The ALTER PROCEDURE statement in scvdb.sql would not be executed when creating databases via echoing sql into fb-isql . Strange bug. worth a look in the future.