Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7966633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:28:52+00:00 2026-06-04T06:28:52+00:00

I am working on activecollab custom module, facing problem in permissions; I have added

  • 0

I am working on activecollab custom module, facing problem in permissions; I have added permissions with the help of “on_system_permissions.php” handler. But the thing is how can I check this on code that either the logged in user have permission of specific action or not ..

I got below code from activecollab other module:

class Role extends FwRole implements IHomescreen {

..
..

    function isPeopleManager(){

       $this->getPermissionValue('can_manage_people');

    }
...
...

}

Is that to check permission of any action? or it just return a value of that action?

In above class they are using $this-> and extending a class by FwRole .. When i using FwRole::getPermissionValue('can_manage_people'); to get return it gives me error of $this and object ..

So my question is how we can check permission of specific action in code and how i can use getPermissionValue() function to retrieve permission either yes or not ..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T06:28:53+00:00Added an answer on June 4, 2026 at 6:28 am

    When you have a user instance, you can check whether that user has particular permission set to Yes by executing getSystemPermission method:

    $user = Users::findById(12);
    
    if($user instanceof User) {
      if($user->getSystemPermission('my_permission')) {
        print 'My permission set to Yes';
      } else {
        print 'My permission set to No';
      } // if
    } // if
    

    Note that activeCollab permissions cascade (can depend one on another). If you have dependent permission, system also checks whether you have parent permissions set to Yes, not just that (for example, system will return false for manage_projects permission if you don’t have system_access permission, because it depends on it).

    Update

    Permission cascading has been introduced in activeCollab 3!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on activecollab custom module, so have some problem in css file
I'm working on activecollab custom module's permissions, and getting this error message when try
I am working with custom module of activecollab, I need to know how can
Working on writing a custom property Handler for our custom file type in windows
Working on a console application using Delphi 7, and have run into a problem.
Working with C and Win32, I have a problem where my program freezes instead
Working through the five minute Xtext tutorial (http://www.eclipse.org/Xtext/documentation/2_1_0/010-xtext-in-5-minutes.php) I get to Generating The Language
Working example: http://alpha.jsfiddle.net/gTpWv/ Both of the methods work separately, but once regexp for smilies
Working with a Lucene index, I have a standard document format that looks something
Working in Java: I have a JFrame class, and separate classes for my two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.