You can use modifiers to do it like this:
pragma solidity ^0.4.0;
contract MyContract {
  address mAdmin;
  modifier adminOnly {
    if (msg.sender == mAdmin) _;
  }
  function MyContract() {
    mAdmin = msg.sender;
  }
  function doSomething() adminOnly {
    ...
  }
}
You can learn more about it here: http://solidity.readthedocs.io/en/develop/common-patterns.html#restricting-access