Hello uic,
Thanks for your reply. If I understand you correctly, I have made
models for "user", & "group".
user:
<?php
class User extends AppModel
{
var $name = 'User';
var $hasOne = array('Group' =>
array('className' => 'Group',
'foreignKey' => 'group_id'));
}
?>
group:
<?php
class Group extends AppModel
{
var $name = 'Group';
var $hasMany = 'User';
var $hasAndBelongsToMany = array('Permission' =>
array('className' => 'Permission',
'joinTable' => 'groups_permissions'));
}
?>
I've created group levels 100, 200, 300.
Assigned groups names per tutorial 0.5
Created permissions (1,1) (2,2) (2,3) (2,4) (3,5) (3,6) etc.
var $mode = 'oth';
var $gid = 3;
var $auto_redirect = true;
var $gid_order = 'asc';
var $strict_gid_check = false;
I have access to everything I'm trying to protect. Tested in all levels
100, 200, 300.
Ideas?
Many thanks for your help.
devon
I'm using component 0.5.2 and was referring to the 0.5 tutorial. Have
attempted to use the correct conventions.
Where I left off yesterday was basically where I'm at today.
On Dec 21, 9:15 am, ":uic" <[EMAIL PROTECTED]> wrote:
Hi devon,
looks like your user data is not being passed to the session...thats
why when the lock function is trying to determine wheter the user is
authorized or not its not able to find this data in the session.
Have you made the models and its relationships? (usermodel and
groupmodel)
devon wrote:
> Hello CakePHP Community..
> I'm new to the framework and excited to get some work done for my
> clients. It looks to be a very good framework with improving
> documentation. On to my issue..
> Traversing through this group and on IRC I know this topic has come up
> many times, but I must ask for an assist. I've downloaded and installed
> onAuth component 05.2, the helper, baked the models, set up the db
> permissions matrix, updated the appController, and have followed the
> tutorial closely. ( I thought)
> I'm having a problem enabling login. I am not getting beyond the login
> page, however I can open the admin views of the content I am trying to
> secure.
> I do get an "Invalid ID for User" when accessing users/index. No other
> errors are thrown. This must be a simple fix, but I'm not able to find
> the problem. What am I missing?
> Devon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---