Yii Framework Forum: find if a folder belongs to other - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

find if a folder belongs to other Rate Topic: -----

#1 User is offline   dimis283 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 277
  • Joined: 24-January 09

Posted 23 September 2009 - 06:03 AM

I want to make a function that check the permisions at a folder (or a file ) of a user.
That means that this folder (or the file) must be a subfolder (or belongs to subfolder) of the default (from db) folder that belongs to user.
Is there a simpler method than making a loop at subfolders of 'default' folder?
Posted Image
0

#2 User is offline   pestaa 

  • past Yii dev member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 705
  • Joined: 07-May 09
  • Location:Hungary

Posted 23 September 2009 - 08:16 AM

If the default folder full path is a substring of subfolder/file full path you want to check permission against, then the user is granted.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users