Another most confusing thing in Apex programming is System Mode and User Mode!
Few state forward points:
- Its running apex code by ignoring user's permissions. So if logged in user does not have create permission but they will able to create a record.
- Apex code has access to all objects and fields, sharing rules aren't applied for the current user.
- All apex code run in system mode. It ignores user's permissions. Only exception is anonymous blocks like developer console and standard controllers.
User mode -
- Its running apex code by respecting user's permissions and sharing of records. So, logged in user does not have create permission they are not able to create a record.
- Only standard controllers and anonymous blocks like developer console run in user mode.
0 comments:
Post a Comment